Deprecated.
The maintainer of this distribution has indicated that it is deprecated and no longer suitable for use.
NAME
DBIx::Class::EncodedColumn::Crypt::Passphrase::Argon2 - Crypt::Passphrase::Argon2 backend - DEPRECATED
VERSION
version 0.0107_1
SYNOPSIS
# In your database class:
__PACKAGE__->add_columns(
password => {
data_type => 'CHAR',
size => 255,
encode_column => 1,
encode_class => 'Crypt::Passphrase::Argon2',
encode_args => { memory_cost => 256, etc => '...' },
encode_check_method => 'check_password',
});
# In your program:
my ($self, $user, $pass) = @_;
my $result = $self->schema->resultset('Account')
->search({ user => $user })->first;
return 1
if $result && $result->check_password($pass);
DESCRIPTION
* DEPRECATED *
Use Crypt::Passphrase::Argon2 for an encoded password column.
ENCODE ARGUMENTS
memory_cost
Default: 256
time_cost
Default: 3
parallelism
Default: 1
output_size
Default: 16
salt_size
Default: 16
subtype
Default: argon2id
METHODS
make_encode_sub
Return a coderef that accepts a plain text value and returns an encoded value. This routine is used internally, to encrypt a given plain text password.
$result = $self->schema->resultset('Account')
->create({ user => $user, password => $pass });
make_check_sub
Return a coderef that, when given a resultset object and a plain text value, will return a boolean if the plain text matches the encoded value. This is typically used for password authentication.
$authed = $result->check_password($pass);
SEE ALSO
The t/01-methods.t file
AUTHOR
Gene Boggs <gene@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2022 by Gene Boggs.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)