NAME
Util::Medley::Crypt - Class for simple encrypt/descrypt of strings.
VERSION
version 0.004
SYNOPSIS
my $key = 'abcdefghijklmnopqrstuvwxyz';
my $str = 'foobar';
my $encrypted_str = $self->encryptStr($key, $str);
my $origin = $self->decryptStr($key, $encrypted_str);
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.
decryptStr
Decrypts the provided string.
required args
str: String to Decrypt.
optional args
key: Decryption key.
encryptStr
Encrypts the provided string.
required args
str: String to Encrypt.
optional args
key: Encryption key.