From: Steinar H. Gunderson Date: Fri, 6 Jul 2018 12:22:56 +0000 (+0200) Subject: Modernize the Bcrypt demands. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=e0e1d562e8e5a686c1fcd29d31b491ee6e74777f;ds=sidebyside Modernize the Bcrypt demands. --- diff --git a/perl/mkpasswd.pl b/perl/mkpasswd.pl index 5d6aac3..44db3ed 100755 --- a/perl/mkpasswd.pl +++ b/perl/mkpasswd.pl @@ -19,6 +19,6 @@ print STDERR "\n"; Term::ReadKey::ReadMode(0); my $salt = Sesse::pr0n::Common::get_pseudorandom_bytes(16); # Doesn't need to be cryptographically secur. -my $hash = "\$2a\$07\$" . Crypt::Eksblowfish::Bcrypt::en_base64($salt); +my $hash = "\$2a\$08\$" . Crypt::Eksblowfish::Bcrypt::en_base64($salt); print Crypt::Eksblowfish::Bcrypt::bcrypt($pass, $hash), "\n";