GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
IDEA(3) User Contributed Perl Documentation IDEA(3)

IDEA - Perl interface to IDEA block cipher

    use Crypt::IDEA;

This perl extension is an implementation of the IDEA block cipher algorithm. The module implements the Crypt::BlockCipher interface, which has the following methods
blocksize =item keysize =item encrypt =item decrypt

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.

        my $key = pack("H32", "0123456789ABCDEF0123456789ABCDEF");
        my $cipher = new IDEA $key;
        my $ciphertext = $cipher->encrypt("plaintex");  # NB - 8 bytes
        print unpack("H16", $ciphertext), "\n";

Crypt::CBD, Crypt::DES, Crypt::Blowfish

Bruce Schneier, Applied Cryptography, 1995, Second Edition, published by John Wiley & Sons, Inc.

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!

2005-12-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.