PBKDF1($P, $S, $c, $dkLen, [$Hash]) Input: P password, an octet string S salt, an eight-octet string c iteration count, a positive integer dkLen intended length in octets of derived key, a positive integer, at most 16 for MD2 or MD5 and 20 for SHA-1 Options: Hash underlyting Digest::* instance Output: DK derived key, a dkLen-octet string
PBKDF2($P, $S, $c, $dkLen, [$PRF]) Input: P password, an octet string S salt, an octet string c iteration count, a positive integer dkLen intended length in octets of the derived key, a positive integer, at most (2**32 -1) x hLen Output: DK derived key, a dkLen-octet string Options: PRF underlying pseudorandom function (hLen denotes the length in octets of the pseudorandom function output)
Crypt::PKCS5 - PKCS #5 v2.1: Password-Based Cryptography Standard.
use Crypt::PKCS5;
Blah blah blah.
http://www.rsa.com/rsalabs/node.asp?id=2127
Hiroyuki OYAMA, <oyama@module.jp>
Copyright (C) 2007 by Hiroyuki OYAMA
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Crypt::PKCS5, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::PKCS5
CPAN shell
perl -MCPAN -e shell install Crypt::PKCS5
For more information on module installation, please visit the detailed CPAN module installation guide.