NAME
Crypt::Passphrase::Pepper::Base - A base class for pre-hashing pepper implementations
VERSION
version 0.014
DESCRIPTION
This is a base-class for pre-peppering implementations. You probably want to use Crypt::Passphrase::Pepper::Basic instead.
METHODS
new(%args)
This creates a new Crypt::Passphrase::Pepper::Base
. As it's an abstract class you shouldn't call this unless you're writing a subclass.
hash_password($password)
This hashes the passwords with the active pepper.
needs_rehash($hash)
This returns true if the hash uses a different cipher or pepper, or if any of the encoder parameters is lower that desired by the encoder.
crypt_subtypes()
This class supports all the types supported by the underlaying encoder, with or without a peppered-
prefix.
verify_password($password, $hash)
This will check if a password matches the hash, supporting both peppered and unpeppered hashed with the encoder.
AUTHOR
Leon Timmermans <leont@cpan.org>
COPYRIGHT AND LICENSE
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.