Crypt::ECBCrypt::ECB is a Perl module to encrypt data using the ECB mode. | |
Download |
Crypt::ECB Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Christoph Appel
- Publisher web site:
- http://search.cpan.org/~appel/Crypt-ECB-1.45/ECB.pm
Crypt::ECB Tags
Crypt::ECB Description
Crypt::ECB is a Perl module to encrypt data using the ECB mode. Crypt::ECB is a Perl module to encrypt data using the ECB mode.SYNOPSISUse Crypt::ECB OO style use Crypt::ECB; $crypt = Crypt::ECB->new; $crypt->padding(PADDING_AUTO); $crypt->cipher('Blowfish') || die $crypt->errstring; $crypt->key('some_key'); $enc = $crypt->encrypt("Some data."); print $crypt->decrypt($enc);or use the function style interface use Crypt::ECB qw(encrypt decrypt encrypt_hex decrypt_hex); $ciphertext = encrypt($key, 'Blowfish', "Some data", PADDING_AUTO); $plaintext = decrypt($key, 'Blowfish', $ciphertext, PADDING_AUTO); $hexcode = encrypt_hex($key, $cipher, $plaintext); $plain = decrypt_hex($key, $cipher, $hexcode);This module is a Perl-only implementation of the ECB mode. In combination with a block cipher such as DES, IDEA or Blowfish, you can encrypt and decrypt messages of arbitrarily long length. Though for security reasons other modes than ECB such as CBC should be preferred. See textbooks on cryptography if you want to know why.The functionality of the module can be accessed via OO methods or via standard function calls. Remember that some crypting module like for example Blowfish has to be installed. The syntax follows that of Crypt::CBC. Requirements: · Perl
Crypt::ECB Related Software