Crypt-Passphrase
view release on metacpan or search on metacpan
0.009 2023-03-09 01:04:14+01:00 Europe/Amsterdam
- Be more permissive in allowed crypt identifiers
0.008 2023-03-07 23:51:24+01:00 Europe/Amsterdam
- Always instantiate validators
- Add secure_compare method to Validator
0.007 2023-02-12 17:20:19+01:00 Europe/Amsterdam
- Add curry_with_hash and curry_with_password methods
- Add a unicode normalization option
- Match MD5 and SHA hex case-insensitively
0.006 2023-02-08 01:36:27+01:00 Europe/Amsterdam
- Add Crypt::Passphrase::MD5::Hex
- Add Crypt::Passphrase::SHA1::Hex
- Add Crypt::Passphrase::PassphraseHash
0.005 2022-12-26 17:56:04+01:00 Europe/Amsterdam
- Cache accepted hashes for crypt validators
- Never accept undefined hashes
lib/Crypt/Passphrase.pm view on Meta::CPAN
This argument is mandatory.
=item * validators
This is a list of additional validators for passwords. These values can each either be the same an encoder value, except that the last entry may also be a coderef that takes the password and the hash as its arguments and returns a boolean value.
This argument is optional and defaults to an empty list. The encoder is always considered as a validator and thus doesn't need to be specified.
=item * normalization
This sets the unicode normalization form used for the password. Valid values are C<'C'> (composed; the the default), C<'D'> (decomposed), C<'KC'> (legacy composed) and C<'KD'> (legacy decomposed). You should probably not change this unless it's neces...
=back
=head2 hash_password
$passphrase->hash_password($password)
This will hash a C<$password> with the encoder cipher, and return it (in crypt format). This will generally use a salt, and as such will return a different value each time even when called with the same password.
=head2 verify_password
( run in 0.776 second using v1.01-cache-2.11-cpan-88abd93f124 )