Crypt-OpenSSL-PBKDF2
view release on metacpan or search on metacpan
=head1 Static Methods
=over 2
=item derive
This function returns a derived key that is supposed to be cryptographically
strong.
The binary output key will be generated from a textual password B<$pass> using
a salt block B<$salt> (usually binary data) of length B<$salt_len>; the
algorithm perform the number of iterations specified by B<$iter> (usually >
1000, better if > 4000). If the salt is empty (or undef) the salt length must
be 0. The output is binary data with length (in bytes) specified by the
B<$key_len> parameter.
The function will not ever attempt to auto-calculate the length of the salt
because it is not assumed to be a NULL terminated value, so its length is
always required.
The hashing is performed using the default algorithm SHA1, but an alternate
algortithm may be specified using the (optional) parameter B<alg>; the allowed
values are the textual names as defined in OpenSSL (a list may be obtained
with the command: openssl dgst -list); so right now you may use:
( run in 0.796 second using v1.01-cache-2.11-cpan-71847e10f99 )