NAME

Crypt::Passphrase::Bcrypt::Compat - A bcrypt validator for Crypt::Passphrase

VERSION

version 0.003

SYNOPSIS

my $passphrase = Crypt::Passphrase->new(
  encoder => {
    module => 'Bcrypt',
    cost   => 12,
  },
  validator => [ 'Bcrypt::Compat' ],
);

DESCRIPTION

This module exists to support checking $2$ type bcrypt hashes (as opposed to more modern variants like $2b$ or $2a$) as sometimes generated by Crypt::Eksblowfish::Bcrypt. This ancient variant is not supported by by modern bcrypt implementations, hence the need for this compatability implementation. It should not be necessary for any other purpose.

AUTHOR

Leon Timmermans <fawaka@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.