-
-
23 Jul 2013 20:44:54 UTC
- Distribution: Crypt-IDEA
- Module version: 1.10
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (7111 / 4 / 0)
- Kwalitee
Bus factor: 0- 78.85% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (7.06KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
IDEA - Perl interface to IDEA block cipher
SYNOPSIS
use Crypt::IDEA;
DESCRIPTION
This perl extension is an implementation of the IDEA block cipher algorithm. The module implements the Crypt::BlockCipher interface, which has the following methods
FUNCTIONS
- blocksize
-
Returns the size (in bytes) of the block cipher.
- keysize
-
Returns the size (in bytes) of the key.
- new
-
my $cipher = new IDEA $key;
This creates a new IDEA BlockCipher object, using $key, where $key is a key of
keysize()
bytes. - encrypt
-
my $cipher = new IDEA $key; my $ciphertext = $cipher->encrypt($plaintext);
This function encrypts $plaintext and returns the $ciphertext where $plaintext and $ciphertext should be of
blocksize()
bytes. - decrypt
-
my $cipher = new IDEA $key; my $plaintext = $cipher->decrypt($ciphertext);
This function decrypts $ciphertext and returns the $plaintext where $plaintext and $ciphertext should be of
blocksize()
bytes.
EXAMPLE
my $key = pack("H32", "0123456789ABCDEF0123456789ABCDEF"); my $cipher = new IDEA $key; my $ciphertext = $cipher->encrypt("plaintex"); # NB - 8 bytes print unpack("H16", $ciphertext), "\n";
SEE ALSO
Crypt::CBD, Crypt::DES, Crypt::Blowfish
Bruce Schneier, Applied Cryptography, 1995, Second Edition, published by John Wiley & Sons, Inc.
COPYRIGHT
This implementation is copyright Systemics Ltd ( http://www.systemics.com/ ).
The IDEA algorithm is patented in Europe and the United States by Ascom-Tech AG.
Module altered between 1999 and 2005 to allow added functionality with perl -MCPAN, Changes by Dave Paris (edited lib paths, endian issues, new tests).
Thank you to contributors for endian patches and new test suite!
Module Install Instructions
To install Crypt::IDEA, copy and paste the appropriate command in to your terminal.
cpanm Crypt::IDEA
perl -MCPAN -e shell install Crypt::IDEA
For more information on module installation, please visit the detailed CPAN module installation guide.