The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

version 0.018

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, it must be one from the supported_hashes list

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.

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.