13 Oct 1999 23:35:45 UTC
- Distribution: Crypt-TripleDES
- Module version: 0.24
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (449 / 0 / 0)
- KwaliteeBus factor: 1
- 5.46% Coverage
- License: unknown
- Activity24 month
- Download (6.03KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionVIPUL Vipul Ved Prakash
Crypt::TripleDES - Triple DES encyption.
my $des = new Crypt::TripleDES; my $cyphertext = $des->encrypt3 ( $plaintext, $passphrase ); my $plaintext = $des->decrypt3 ( $cyphertext, $passphrase );
This module implements 3DES encryption in ECB mode. The code is based on Eric Young's implementation of DES in pure perl. It's quite slow because of the way Perl handles bit operations and is not recommended for use with large texts.
- encrypt3 $plaintext, $passphrase
Encrypts the plaintext string using the passphrase. Whitespace characters are appended to the string if its length is not a multiple of eight. User applications can correct for this by storing plaintext size with the cyphertext. The passphrase is an ASCII character string of upto 48 characters.
- decrypt3 $cyphertext, $passphrase
Inverse of encrypt3().
Vipul Ved Prakash, email@example.com Eric Young, firstname.lastname@example.org Patches: Jonathan Mayer <email@example.com>
Module Install Instructions
To install Crypt::TripleDES, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Crypt::TripleDES
For more information on module installation, please visit the detailed CPAN module installation guide.