1Digest::PBKDF2(3)     User Contributed Perl Documentation    Digest::PBKDF2(3)
2
3
4

NAME

6       Digest::PBKDF2 A minimalist Digest module using the PBKDF2 algorithm.
7

NOTICE

9       You can only use one salt, a pre-salt, with this module. It is not
10       smart enough to do post-salts.
11

SYNOPSIS

13           my $digest = Digest::PBKDF2->new;   # Or...
14           my $digest = Digest::PBKDF2->new(encoding => 'ldap');
15           $digest->add('mysalt');             # salt = 'mysalt'
16           $digest->add('k3wLP@$$w0rd');       # password = 'k3wLP@$$w0rd'
17
18           $digest->add('eX+ens10n');          # password = 'k3wLP@$$w0rdeX+ens10n'
19
20           my $result = $digest->digest;       # $PBKDF2$HMACSHA1:1000:bXlzYWx0$4P9pwp
21                                               # LoF+eq5jwUbMw05qRQyZs=
22
23       That's about it.
24

METHODS

26       new Create a new Digest::PBKDF2 object. This defaults to using the
27           "ldap" encoding available in Crypt::PBKDF2--please see
28           Crypt::PBKDF2 for details.
29
30       clone
31           Copies the data and state from the original Digest::PBKDF2 object,
32           and returns a new object.
33
34       add Pass this method your salt and data chunks. They are stored up
35           until you call digest.
36
37       digest
38           This encrypts your data and returns the encrypted string.
39
40       reset
41           After calling digest, the module calls reset on its self, clearing
42           data and the record of how many additions were made to the data to
43           be digested.
44

SEE ALSO

46       Crypt::PBKDF2 Digest
47

AUTHOR

49       Amiri Barksdale, <abarksdale@campusexplorer.com>
50
52       Copyright (c) 2017 by Campus Explorer, Inc.
53
54       <http://www.campusexplorer.com>
55

LICENSE

57       This library is free software; you can redistribute it and/or modify it
58       under the same terms as Perl itself.
59
60
61
62perl v5.28.1                      2017-12-31                 Digest::PBKDF2(3)
Impressum