Crypt::RC5 - Perl implementation of the RC5 encryption algorithm.
use Crypt::RC5; $ref = Crypt::RC5->new( $key, $rounds ); $ciphertext = $ref->encrypt( $plaintext ); $ref2 = Crypt::RC5->new( $key, $rounds ); $plaintext2 = $ref2->decrypt( $ciphertext );
RC5 is a fast block cipher designed by Ronald Rivest for RSA Data Security (now RSA Security) in 1994. It is a parameterized algorithm with a variable block size, a variable key size, and a variable number of rounds. This particular implementation is 32 bit. As such, it is suggested that a minimum of 12 rounds be performed.
Core logic based on "RC5 in 6 lines of perl" at http://www.cypherspace.org
Kurt Kincaid (sifukurt@yahoo.com)
Ronald Rivest for RSA Security, Inc.
perl, http://www.cypherspace.org, http://www.rsasecurity.com
To install Crypt::RC5, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::RC5
CPAN shell
perl -MCPAN -e shell install Crypt::RC5
For more information on module installation, please visit the detailed CPAN module installation guide.