1Crypt::PBKDF2::Hash(3)User Contributed Perl DocumentationCrypt::PBKDF2::Hash(3)
2
3
4
6 Crypt::PBKDF2::Hash - Abstract role for PBKDF2 hashing algorithms.
7
9 version 0.161520
10
12 hash_len()
13 Returns the length (in bytes) of the hashes this algorithm generates.
14
15 generate($data, $key)
16 Generate strong pseudorandom bits based on the $data and $key
17
18 to_algo_string()
19 Return a string representing any optional arguments this object was
20 created with, for use by Crypt::PBKDF2's "generate" and "encode_string"
21 methods. May return undef if no arguments are required, in which case
22 none will be serialized and "from_algo_string" won't be called on
23 reading the hash.
24
25 from_algo_string($str)
26 Given a string as produced by "from_algo_string", return an instance of
27 this class with options corresponding to those in $str. If no options
28 are expected, it's permissible for this method to throw an exception.
29
31 Andrew Rodland <arodland@cpan.org>
32
34 This software is copyright (c) 2016 by Andrew Rodland.
35
36 This is free software; you can redistribute it and/or modify it under
37 the same terms as the Perl 5 programming language system itself.
38
39
40
41perl v5.36.0 2023-01-20 Crypt::PBKDF2::Hash(3)