Web::Authenticate::Digest - The default implementation of Web::Authenticate::Digest::Role.
version 0.003
Sets the Crypt::PBKDF2 object that is used to create and validate digests. Below is the default:
Crypt::PBKDF2->new( hash_class => 'HMACSHA2', hash_args => { sha_size => 512, }, iterations => 10000, salt_len => 10, )
Accepts a password and returns the hex digest of that password using "crypt".
my $password_digest = $digest->generate($password);
Uses "validate" in Crypt::PBKDF2.
my $validate_success = $digest->validate($hash, $password);
Adam Hopkins <srchulo@cpan.org>
This software is copyright (c) 2017 by Adam Hopkins.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Web::Authenticate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::Authenticate
CPAN shell
perl -MCPAN -e shell install Web::Authenticate
For more information on module installation, please visit the detailed CPAN module installation guide.