I'd like to upload Crypt::TEA (README appended), a module implementing
the Tiny Encryption Algorithm, to CPAN. Please suggest an alternative
name if Crypt::TEA is unsuitable.

- ams

NAME
    Crypt::TEA - Tiny Encryption Algorithm

SYNOPSIS
    use Crypt::TEA;

    $tea = Crypt::TEA->new($key);

    $ciphertext = $tea->encrypt($plaintext);

    $plaintext = $tea->decrypt($ciphertext);

DESCRIPTION
    This module implements TEA encryption, as described in
    <http://www.cl.cam.ac.uk/ftp/users/djw3/tea.ps> and
    <http://www.cl.cam.ac.uk/ftp/users/djw3/xtea.ps>. It supports the
    Crypt::CBC interface, which supports the methods described below.

  Functions

    blocksize
        Returns the size (in bytes) of the block.

    keysize
        Returns the size (in bytes) of the key.

    new($key, $rounds)
        This creates a new Crypt::TEA object with the specified key
        (assumed to be of keysize() bytes). The optional rounds
        parameter specifies the number of rounds of encryption to
        perform, and defaults to 32.

    encrypt($data)
        Encrypts $data (of blocksize() bytes) and returns the
        corresponding ciphertext.

    decrypt($data)
        Decrypts $data (of blocksize() bytes) and returns the
        corresponding plaintext.

SEE ALSO
    Crypt::CBC, Crypt::Blowfish, Crypt::DES

AUTHOR
    Abhijit Menon-Sen <[EMAIL PROTECTED]>

    Copyright 2001 Abhijit Menon-Sen. All rights reserved.

    This is free software; you may redistribute and/or modify it under
    the same terms as Perl itself.

Reply via email to