Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Crypt::IDEA 1.08

    Download button

    No screenshots available
    Downloads: 642  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    5 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Dave Paris | More programs
    Perl Artistic License / FREE
    August 8th, 2008, 09:29 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Crypt::IDEA description

    A Perl interface to the IDEA block cipher.

    Crypt::IDEA is a Perl interface to the IDEA block cipher.

    SYNOPSIS

    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

    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";


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    block cipher | Perl interface | Perl module | IDEA | block | cipher

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM