Egg::Plugin::Crypt::CBC - Crypt::CBC for Egg Plugin.
use Egg qw/ Crypt::CBC /; __PACKAGE__->egg_startup( ..... ... plugin_crypt_cbc => { cipher=> 'Blowfish', key => 'uniqueid', ... }, ); # The text is encrypted. my $crypt= $e->cbc->encode($text); # The code end text is decrypted. my $plain= $e->cbc->decode($crypt); # The cbc object is acquired in an arbitrary option. my $cbc= $e->cbc( cipher => 'DES' );
It is a plugin to use the code and decoding by Crypt::CBC.
HASH is defined in 'plugin_crypt_cbc' key and it sets it.
The setting is an option to pass everything to Crypt::CBC.
Please refer to the document of Crypt::CBC for details.
The exception is generated in case of undefined.
'$KJh#(}q' is provisionally defined in case of undefined.
Please define it.
Default is 'standard'.
Default is 0.
Default is 1.
The handler object of this plugin is returned.
It turns by using the same object when the object is generated once usually. When OPTION_HASH is given, it tries to generate the object newly.
The handler object has succeeded to Crypt::CBC.
Constructor.
After PLAIN_TEXT is encrypted, the Base64 encode text is returned.
my $crypt_text= $e->cbc->encode( 'plain text' );
The text encrypted by 'encode' method is made to the compound and returned.
my $plain_text= $e->cbc->decode( 'crypt text' );
Egg::Release, Crypt::CBC,
Masatoshi Mizuno <lushe@cpan.org>
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.
To install Egg::Plugin::Crypt::CBC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Plugin::Crypt::CBC
CPAN shell
perl -MCPAN -e shell install Egg::Plugin::Crypt::CBC
For more information on module installation, please visit the detailed CPAN module installation guide.