NAME
Egg::Model::Auth::Crypt::CBC - AUTH component to treat code of attestation data with Crypt::CBC.
SYNOPSIS
package MyApp::Model::Auth::MyAuth;
..........
__PACKAGE__->config(
crypt_cbc => {
cipher => 'Blowfish',
key => 'AbCd1234',
.......
...
},
);
__PACKAGE__->setup_api( File => qw/ Crypt::CBC / );
DESCRIPTION
It is API component to treat the password in the attestation data with Crypt::CBC.
'Crypt::CBC' is included in the list following API component name that adds the setting of 'crypt_cbc' to the configuration to use it and specifies it for 'setup_api' method.
__PACKAGE__->setup_api( File => qw/ Crypt::CBC / );
And, please set 'cipher' and 'key' used when the password in the attestation data is encrypted in 'crypt_cbc'.
Additionally, all set content extends to Crypt::CBC.
METHODS
password_check ([CRYPT_PASSWORD], [INPUT_PAWWORD])
CRYPT_PASSWORD is decoded and whether it agrees is confirmed with INPUT_PAWWORD.
create_password ([PLAIN_PASSWORD])
PLAIN_PASSWORD is encrypted.
SEE ALSO
Egg::Release, Egg::Model::Auth, Egg::Model::Auth::Base::API, Crypt::CBC,
AUTHOR
Masatoshi Mizuno <lushe@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.