Masatoshi Mizuno > Egg-Release-Authorize > Egg::Model::Auth::Crypt::MD5

Download:
Egg-Release-Authorize-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Egg::Model::Auth::Crypt::MD5 - AUTH component to treat code of attestation data with Digest::MD5.

SYNOPSIS ^

  package MyApp::Model::Auth::MyAuth;
  ..........
  
  __PACKAGE__->config(
    crypt_md5_salt => 'abcd1234',
    );
  
  __PACKAGE__->setup_api( File => qw/ Crypt::MD5 / );

DESCRIPTION ^

It is API component to treat the password in the attestation data with Digest::MD5.

'Crypt::MD5' is included in the list following API component name specified for 'setup_api' method.

  __PACKAGE__->setup_api( DBI => qw/ Crypt::MD5 / );

When 'crypt_md5_salt' of the configuration is set, the character string that connects the content behind former password comes to be used to generate checksum.

METHODS ^

password_check ([CRYPT_PASSWORD], [INPUT_PAWWORD])

The agreement of CRYPT_PASSWORD and INPUT_PAWWORD is confirmed.

create_password ([PLAIN_PASSWORD])

PLAIN_PASSWORD is encrypted.

valid_crypt ([CRYPT_PASSWORD])

CRYPT_PASSWORD is HEX value of 32 digits or it confirms it.

SEE ALSO ^

Egg::Release, Egg::Model::Auth, Egg::Model::Auth::Base::API, Digest::MD5,

AUTHOR ^

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.

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.

syntax highlighting: