NAME
Util::Medley::Crypt - Class for simple encrypt/descrypt of strings.
VERSION
version 0.007
SYNOPSIS
my $key = 'abcdefghijklmnopqrstuvwxyz';
my $str = 'foobar';
my $crypt = Util::Medley::Crypt->new;
my $encrypted_str = $crypt->encryptStr(
str => $str,
key => $key
);
my $decrypted_str = $crypt->decryptStr(
str => $encrypted_str,
key => $key
);
DESCRIPTION
This class provides a thin wrapper around Crypt::CBC.
All methods confess on error.
ATTRIBUTES
key (optional)
Key to use for encrypting/decrypting methods when one isn't provided through the method calls.
METHODS
decryptStr
Decrypts the provided string.
encryptStr
Encrypts the provided string.