NAME
DBIx::Class::EncodedColumn::Crypt::Scrypt - scrypt support for DBIx::Class::EncodedColumn
VERSION
version 0.004
SYNOPSIS
__PACKAGE__->add_columns(
'password' => {
data_type => 'text',
encode_column => 1,
encode_class => 'Crypt::Scrypt',
encode_args => {
cost => 10,
keysz => 64
},
encode_check_method => 'check_password',
}
)
DESCRIPTION
NAME
DBIx::Class::EncodedColumn::Crypt::Scrypt
ACCEPTED ARGUMENTS
cost
CPU/memory cost, as a power of 2. Give the exponent only. Default: 8
blocksz
Block size. Defaults to 8.
parallel
Parallelization parameter. Defaults to 1.
saltsz
Length of salt in bytes. Defaults to 32.
keysz
Length of derived key in bytes. Defaults to 32.
METHODS
make_encode_sub($column_name, \%encode_args)
Returns a coderef that accepts a plaintext value and returns an encoded value.
make_check_sub($column_name, \%encode_args)
Returns a coderef that when given the row object and a plaintext value will return a boolean if the plaintext matches the encoded value. This is typically used for password authentication.
SEE ALSO
AUTHOR
Forest Belton <forest@homolo.gy>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by Forest Belton.
This is free software, licensed under:
The MIT (X11) License