Crypt::Passphrase::Pepper::Base(3)

NAME
Crypt::Passphrase::Pepper::Base - A base class for pre-hashing pepper implementations

VERSION
version 0.023

DESCRIPTION
This is a base-class for pre-peppering implementations. You probably want to use Crypt::Passphrase::Pepper::Simple instead.

SUBCLASSING

  Creation
Any subclass is expected to call this class' method new with at least the following arguments.

inner

This must contain an encoder specification identical to the "encoder" field of "Crypt::Passphrase".

active

The identifier of the active pepper.

algorithm

The hash that is used for password creation.

  Mandatory methods
It expects the subclass to implement the following method:

prehash_password

 $pepper->prehash_password($password, $algorithm, $id)

This should prehash the $password with $algorithm and the pepper named by $id.

supported_hashes

This should return a list of hashes that are supported.

AUTHOR
Leon Timmermans <fawaka@gmail.com>

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.