Crypt::RC4 (3)
Leading comments
Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14) Standard preamble: ========================================================================
NAME
Crypt::RC4 - Perl implementation of the RC4 encryption algorithmSYNOPSIS
# Functional Styleuse Crypt::RC4;
$encrypted =
$decrypt =
#
use Crypt::RC4;
$ref = Crypt::RC4->new( $passphrase );
$encrypted = $ref->
$ref2 = Crypt::RC4->new( $passphrase ); $decrypted = $ref2->RC4( $encrypted );
# process an entire file, one line at a time
# (Warning: Encrypted file leaks line lengths.)
$ref3 = Crypt::RC4->new( $passphrase );
while (<
chomp;
print $ref3->
}
DESCRIPTION
A simple implementation of the
Based substantially on the ``
A major bug in v1.0 was fixed by David Hook (dgh@wumpus.com.au). Thanks, David.
AUTHOR
Kurt Kincaid (sifukurt@yahoo.com) Ronald Rivest forBUGS
Disclaimer: Strictly speaking, this module uses the ``alleged''There's nothing preventing you from using this module in an insecure way which leaks information. For example, encrypting multilple messages with the same passphrase may allow an attacker to decode all of them with little effort, even though they'll appear to be secured. If serious crypto is your goal, be careful. Be very careful.
It's a pure-Perl implementation, so that rating of ``Eight to sixteen machine operations'' is good for nothing but a good laugh. If encryption and decryption are a bottleneck for you, please re-write this module to use native code wherever practical.