NAME
Password::OWASP::Argon2 - An Argon2 implemenation of Password::OWASP
VERSION
version 0.005
SYNOPSIS
package MyApp::Authentication;
use Password::OWASP::Argon2;
my $user = get_from_db();
my $from_web = "Super secret password";
my $owasp = Password::OWASP::Argon2->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";
}
DESCRIPTION
Implements Argon2 password checking.
METHODS
crypt_password
Encrypt the password and return it as an RFC2307 formatted string.
check_password
Check if the password is the same as what was stored.
SEE ALSO
AUTHOR
Wesley Schwengle <waterkip@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2019 by Wesley Schwengle.
This is free software, licensed under:
The (three-clause) BSD License