Crypt::CAST5 is CAST5 block cipher.
SYNOPSIS
use Crypt::CBC;
my $crypt = Crypt::CBC->new({
key => "secret key",
cipher => "CAST5",
});
my $message = "All mimsy were the borogoves";
my $ciphertext = $crypt->encrypt($message);
print unpack("H*", $ciphertext), "n";
my $plaintext = $crypt->decrypt($ciphertext);
print $plaintext, "n";
This module provides an implementation of the CAST5 block cipher using compiled C code for increased speed. CAST5 is also known as CAST-128. It is a product of the CAST design procedure developed by C. Adams and S. Tavares.
The CAST5 cipher is available royalty-free.
Product's homepage
Requirements:
· Perl