NAME
Web::Authenticate::Digest::Role - A Mouse::Role that defines what methods a Web::Authenticate::Digest object should contain.
VERSION
version 0.013
METHODS
generate
All "Web::Authenticate::Digest" objects should be able to digest text and return a hashed value.
my $hash = $digest->generate($password);
validate
Validates the stored hash for the user against the user entered password.
if ($digest->validate($hash, $password)) {
# success
} else {
# failure
}
AUTHOR
Adam Hopkins <srchulo@cpan.org>
COPYRIGHT AND LICENSE
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.