Erich Roncarolo > Crypt-Mimetic-0.02 > Crypt::Mimetic::TEA

Download:
Crypt-Mimetic-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Crypt::Mimetic::TEA - Tiny Encryption Algorithm

DESCRIPTION ^

This module is a part of Crypt::Mimetic.

This modules uses TEA to encrypt blocks of bytes, so DecryptFile needs @info containing generic-blocks-length and last-block-length (padlen) to know how decrypt a file. EncryptString and DecryptString always encrypt/decrypt a string as a single block.

PROCEDURAL INTERFACE ^

string ShortDescr ()

Return a short description of algorithm

boolean PasswdNeeded ()

Return true if password is needed by this algorithm, false otherwise. ('TEA' return always true)

($len,$blocklen,$padlen,[string]) EncryptFile ($filename,$output,$algorithm,$key,@info)

Encrypt a file with TEA algorithm. See Crypt::Mimetic::EncryptFile.

string EncryptString ($string,$algorithm,$key,@info)

Encrypt a string with TEA algorithm. See Crypt::Mimetic::EncryptString.

[string] DecryptFile ($filename,$output,$offset,$len,$algorithm,$key,@info)

Decrypt a file with TEA algorithm. See Crypt::Mimetic::DecryptFile.

string DecryptString ($string,$algorithm,$key,@info)

Decrypt a string with TEA algorithm. See Crypt::Mimetic::DecryptString.

NEEDED MODULES ^

This module needs: Error::Mimetic Crypt::Tea

KNOWN BUGS ^

Seems to be quite slow.

SEE ALSO ^

Crypt::Mimetic

LICENSE ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself (Artistic/GPL2).

AUTHOR ^

Erich Roncarolo <erich-roncarolo@users.sourceforge.net>

syntax highlighting: