The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Web::Authenticate::Digest::Role - A Mouse::Role that defines what methods a Web::Authenticate::Digest object should contain.

VERSION

version 0.003

METHODS

generate

All "Web::Authenticate::Digest" objects should be able to digest text and return a hashed value.

    my $hash = $digest->generate($password);

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.