Util::Medley::Crypt - Class for simple encrypt/descrypt of strings.
version 0.002
my $key = 'abcdefghijklmnopqrstuvwxyz'; my $str = 'foobar'; my $encrypted_str = $self->encryptStr($key, $str); my $origin = $self->decryptStr($key, $encrypted_str);
This class provides a thin wrapper around Crypt::CBC.
All methods confess on error.
Key to use for encrypting/decrypting methods when one isn't provided.
Decrypts the provided string.
str: String to Decrypt.
key: Decryption key.
Encrypts the provided string.
str: String to Encrypt.
key: Encryption key.
To install Util::Medley, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Util::Medley
CPAN shell
perl -MCPAN -e shell install Util::Medley
For more information on module installation, please visit the detailed CPAN module installation guide.