News for hackers. Stuff that matters.
Re:Don't Panic: Seeking Points of Agreement on the “Going Da... by fleitz on Tuesday February 02, 2016 @06:01PM (#11023413)
Incorrect, if the key is shared the encryption is breakable. If you're just doing one round of XOR it's pretty easy to break the key given a known plaintext, in the same way that AES is very breakable in ECB mode.

For unbreakable encryption, I'd suggest XORing with the contents of /dev/random (assuming /dev/random is unknowable). Of course decryption may be an issue.

Re:Don't Panic: Seeking Points of Agreement on the “Going Da... by schoen on Tuesday February 02, 2016 @06:09PM (#11023451)
In context, I'm sure the parent commenter meant "a random key the same length as the plaintext", not a repeating key or a reused key.
Re:Don't Panic: Seeking Points of Agreement on the “Going Da... by fleitz on Tuesday February 02, 2016 @06:47PM (#11023659)
Some people when faced with an encryption problem think 'I know, I'll use a non-repeating random text to XOR against the plain text', now they have two encryption problems.
Re:Don't Panic: Seeking Points of Agreement on the “Going Da... by mmaunder on Wednesday February 03, 2016 @01:17AM (#11025009)
Three if you count entropy.
Re:Don't Panic: Seeking Points of Agreement on the “Going Da... by mmaunder on Tuesday February 02, 2016 @06:10PM (#11023461)
Thanks. Yup.
Re:Don't Panic: Seeking Points of Agreement on the “Going Da... by mmaunder on Tuesday February 02, 2016 @06:10PM (#11023459)
Wrong. It's just not secure in all contexts e.g. your example where you have a known plaintext that you can use to crack the key which then lets you decrypt something encrypted with the same key. You're discovering why XOR isn't widely used in a real-world setting.
Re:Don't Panic: Seeking Points of Agreement on the “Going Da... by dllthomas on Wednesday February 03, 2016 @01:21AM (#11025016)
"If you're just doing one round of XOR it's pretty easy to break the key"

If you're doing two rounds, it's even easier!