diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2021-04-11 15:31:00 +0100 |
---|---|---|
committer | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-04-11 15:31:00 +0100 |
commit | 734fe365eac84cc94d5b814df617f24f7d597f91 (patch) | |
tree | 84a7b88042057c1f828e4c67d5ad8bfad23682a4 | |
parent | 2cfc32611127be01a16c58cc01636cdcad089636 (diff) | |
download | gpigeon-734fe365eac84cc94d5b814df617f24f7d597f91.tar.gz gpigeon-734fe365eac84cc94d5b814df617f24f7d597f91.zip |
oops, genpass.pl is needed for Makefile
-rwxr-xr-x | genpass.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/genpass.pl b/genpass.pl new file mode 100755 index 0000000..f7e6488 --- /dev/null +++ b/genpass.pl @@ -0,0 +1,9 @@ +#! /usr/bin/perl +use warnings; +use strict; +use Crypt::Argon2 qw/argon2id_pass/; +my $pass = `openssl rand -base64 32`; +my $salt = `openssl rand 16`; +chomp $pass; +print "$pass\n"; +print argon2id_pass($pass, $salt, 3, '32M', 1, 32),"\n"; |