NAME
Crypt::Passphrase::Argon2::Encrypted - A base-class for encrypting/peppered Argon2 encoders for Crypt::Passphrase
VERSION
version 0.007
DESCRIPTION
This is a base-class for pre-peppering implementations. You probably want to use Crypt::Passphrase::Argon2::AES instead.
METHODS
new()
This constructor takes all arguments also taken by Crypt::Passphrase::Argon2, with the following additions: cipher
and active
.
recrypt_hash($to, $input)
This recrypts the hash int $input
to the key identified by $to
, if it's not already.
hash_password($password)
This hashes the passwords with argon2 according to the specified settings and a random salt (and will thus return a different result each time).
needs_rehash($hash)
This returns true if the hash uses a different cipher or subtype, or if any of the parameters is lower that desired by the encoder.
crypt_types()
This class supports at least the following crypt types: argon2id
, argon2i
and argon2d
.
verify_password($password, $hash)
This will check if a password matches an argon2 hash.
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.