in reply to Re: Fastest Encrypt/Decrypt
in thread Fastest Encrypt/Decrypt
Note, that when using RC4 you should never use one key twice, so maybe this is not a best choice.
Update: just a little demonstration of the problem:
use strict; use warnings; use Crypt::RC4::XS; my $line1 = pack 'a32', ''; my $line2 = pack 'a32', 'some secret data'; my $enc1 = RC4('password', $line1); my $enc2 = RC4('password', $line2); my $xor = $enc1 ^ $enc2; print "Result: $xor\n"; __END__ Result: some secret data
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Fastest Encrypt/Decrypt
by almut (Canon) on Jan 16, 2009 at 20:26 UTC | |
by zwon (Abbot) on Jan 16, 2009 at 21:08 UTC |