Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

NAME

Password::OWASP::Scrypt - An Scrypt implemenation of Password::OWASP

VERSION

version 0.005

SYNOPSIS

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";
}

DESCRIPTION

Implements Scrypt 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