Crypt-Simple
view release on metacpan or search on metacpan
=cut
use strict;
use Carp;
use Crypt::Blowfish;
use Compress::Zlib;
use MIME::Base64;
use Digest::MD5 qw(md5);
use FreezeThaw qw(freeze thaw);
sub _chunk($) { $_[0] =~ /.{1,8}/ogs }
sub import {
my ($class, @args) = @_;
my $caller = caller;
my $key = $class->get_key_param(@args)
|| $class->get_key_default($caller);
my $cipher = Crypt::Blowfish->new($key);
no strict 'refs';
*{"${caller}::encrypt"} = sub {
( run in 0.286 second using v1.01-cache-2.11-cpan-1f129e94a17 )