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

NAME

Dancer2::Plugin::Argon2::Passphrase - Argon2 Passphrase object

SYNOPSIS

    use Dancer2::Plugin::Argon2;

DESCRIPTION

The class is for creating a Passphrase object.

METHODS

encoded()

Returns crypt-like encoded argon2 string (AKA encoded hash). Like: $argon2id$v=19$m=65536,t=3,p=1$c29tZXNhbHQ$noeJyLQoNCIK/AAIWsc6zDCGUSFplKu/3dabJZIDLv0.

matches($passphrase)

Checks whether password (in the current object) matches provided password phrase (usually stored value). Returns a truth value.

TODO

  • Add accessors (salt, cost, etc)

  • RFC 2307 encoding

SEE ALSO

Crypt::Argon2, https://github.com/p-h-c/phc-winner-argon2

LICENSE

Copyright (C) Sergiy Borodych.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Sergiy Borodych <bor at cpan.org>