Egg::Model::Auth::Crypt::Func - AUTH component to treat code of attestation data by standard function.


Egg-Release-Authorize documentation  | view source Contained in the Egg-Release-Authorize distribution.

Index


NAME

Top

Egg::Model::Auth::Crypt::Func - AUTH component to treat code of attestation data by standard function.

SYNOPSIS

Top

  package MyApp::Model::Auth::MyAuth;
  ..........

  __PACKAGE__->config(
    crypt_func_md5 => '$1$abcd1234',
    );

  __PACKAGE__->setup_api( File => qw/ Crypt::Func / );

DESCRIPTION

Top

It is API component to treat the password in the attestation data by function crypt of the Perl standard.

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

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

When the character of 11 digits that starts from '$1$' is set to 'crypt_func_md5' of the configuration, the code comes to be treated with MD5.

METHODS

Top

password_check ([CRYPT_PASSWORD], [INPUT_PAWWORD])

The agreement of CRYPT_PASSWORD and INPUT_PAWWORD is confirmed.

create_password ([PLAIN_PASSWORD])

PLAIN_PASSWORD is encrypted.

SEE ALSO

Top

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

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release-Authorize documentation  | view source Contained in the Egg-Release-Authorize distribution.