throwaway 1-liner for generating password hashes

This commit is contained in:
Matthew Hodgson 2015-12-10 19:03:06 +00:00
parent 86345a511f
commit 5577a61090

1
scripts/gen_password Normal file
View File

@ -0,0 +1 @@
perl -MCrypt::Random -MCrypt::Eksblowfish::Bcrypt -e 'print Crypt::Eksblowfish::Bcrypt::bcrypt("secret", "\$2\$12\$" . Crypt::Eksblowfish::Bcrypt::en_base64(Crypt::Random::makerandom_octet(Length=>16)))."\n"'