diff options
-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"; |