DBIx::Class::EncodedColumn::Crypt::Scrypt - scrypt support for DBIx::Class::EncodedColumn
version 0.004
__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', } )
DBIx::Class::EncodedColumn::Crypt::Scrypt
CPU/memory cost, as a power of 2. Give the exponent only. Default: 8
Block size. Defaults to 8.
Parallelization parameter. Defaults to 1.
Length of salt in bytes. Defaults to 32.
Length of derived key in bytes. Defaults to 32.
Returns a coderef that accepts a plaintext value and returns an encoded value.
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.
DBIx::Class::EncodedColumn
Forest Belton <forest@homolo.gy>
This software is Copyright (c) 2014 by Forest Belton.
This is free software, licensed under:
The MIT (X11) License
To install DBIx::Class::EncodedColumn::Crypt::Scrypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::EncodedColumn::Crypt::Scrypt
CPAN shell
perl -MCPAN -e shell install DBIx::Class::EncodedColumn::Crypt::Scrypt
For more information on module installation, please visit the detailed CPAN module installation guide.