NAME

Password::OWASP::Bcrypt - A BlowfishCrypt implemenation of Password::OWASP

VERSION

version 0.005

SYNOPSIS

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

DESCRIPTION

Implements BlowfishCrypt password checking.

METHODS

crypt_password

Encrypt the password and return it as an RFC2307 formatted string.

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