aboutsummaryrefslogtreecommitdiff
path: root/genpass.pl
blob: 44b0f538494fc69cb3ed0bb456262bb4f4211a9d (plain) (blame)
1
2
3
4
5
6
7
8
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);