NAME
Crypt::Passphrase::PBKDF2 - A PBKDF2 encoder for Crypt::Passphrase
VERSION
version 0.004
SYNOPSIS
my $passphrase = Crypt::Passphrase->new(
encoder => {
module => 'PBKDF2',
type => 'sha256',
iterations => 128_000,
},
);
DESCRIPTION
This class implements a PBKDF2 encoder for Crypt::Passphrase. It allows for any SHA-1 or SHA-2 hash, and any number of iterations.
Configuration
It accepts the following arguments:
type
This can be any of
sha1
,sha224
,sha256
(default),sha384
orsha512
.iterations
This will be the iteration count, defaulting to
100000
.salt_size
The size of the salt. This defaults to 16 bytes, which should be more than enough for any use-case.
COMPATIBILITY
This module aims to be compatible with passlib when used with sha1
, sha256
, or sha512
.
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.