Crypt::Passphrase::Bcrypt - A bcrypt encoder for Crypt::Passphrase
This class implements a bcrypt encoder for Crypt::Passphrase. Crypt::Passphrase::Argon2 is recommended over this module as an encoder, as that provides memory-hardness and more easily allows for long passwords.
This is the cost factor that is used to hash passwords.
This is the subtype the rest of the world has been using since 2014
This type is considered equivalent to 2b.
This is an old and subtly buggy version of bcrypt. This is mainly useful for Crypt::Eksblowfish compatibility.
This is a very broken version that is only useful for compatibility with ancient php versions.
This is 2b by default, and you're unlikely to want to change this.
Pre-hash the password using the specified hash. Currently only sha256 is supported. This is mainly useful to get around the 72 character limit. This uses a salt-keyed hash to prevent password shucking.
This hashes the passwords with bcrypt according to the specified settings and a random salt (and will thus return a different result each time).
This returns true if the hash uses a different cipher or subtype, if any of the cost is lower that desired by the encoder or if the prehashing doesn't match.
This returns the above described subtypes, as well as bcrypt-sha256 for prehashed bcrypt.
This will check if a password matches a bcrypt hash.
Leon Timmermans <firstname.lastname@example.org>
This software is copyright (c) 2021 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.
To install Crypt::Passphrase::Bcrypt, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.