Crypt::IDEA man page on OpenServer

Man page or keyword search:  
man Server   5388 pages
apropos Keyword Search (all sections)
Output format
OpenServer logo
[printable version]

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

NAME
       IDEA - Perl interface to IDEA block cipher

SYNOPSIS
	   use Crypt::IDEA;

DESCRIPTION
       This perl extension is an implementation of the IDEA block cipher algo-
       rithm.  The module implements the Crypt::BlockCipher interface, which
       has the following methods

       blocksize =item keysize =item encrypt =item decrypt

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.sys-
       temics.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!

perl v5.8.8			  2005-12-08			       IDEA(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OpenServer

List of man pages available for OpenServer

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net