Password::OWASP::Scrypt - An Scrypt implemenation of Password::OWASP
version 0.005
package MyApp::Authentication; use Password::OWASP::Bcrypt; my $user = get_from_db(); my $from_web = "Some very secret password"; my $owasp = Password::OWASP::Bcrypt->new( # optional hashing => 'sha512', update_method => sub { my $password = shift; $user->update_password($password); return; }, ); if (!$owasp->check_password($from_web)) { die "You cannot login"; }
Implements Scrypt password checking.
Encrypt the password and return it as an RFC2307 formatted string.
Check if the password is the same as what was stored.
Password::OWASP::AbstractBase
Authen::Passphrase::BlowfishCrypt
Wesley Schwengle <waterkip@cpan.org>
This software is Copyright (c) 2019 by Wesley Schwengle.
This is free software, licensed under:
The (three-clause) BSD License
To install Password::OWASP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Password::OWASP
CPAN shell
perl -MCPAN -e shell install Password::OWASP
For more information on module installation, please visit the detailed CPAN module installation guide.