in reply to How secure is XOR encryption?
the security of XOR "encryption" is dependent on the length of the key as follows:
if the key is longer than the message being encrypted and the key is perfectly random, it is provably unbreakable (it's just a one-time pad).
if the key is shorter than the message (so that it has to be repeated to encrypt the entire message), it's trivial to break. using XOR with a key that's repeated is essentially a vigenere cipher and can be broken quite painlessly by looking at the index of coincidence. don't use this method unless you really don't care if the encryption is broken, because it will be by the first hacker who decides to try.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How secure is XOR encryption?
by Ovid (Cardinal) on Apr 24, 2002 at 19:27 UTC | |
by thraxil (Prior) on Apr 25, 2002 at 12:12 UTC |