XOR Cipher

The XOR Cipher opereates on the bits that make up a message and key, running a simple binary "exclusive or" (XOR) on them. This means that if two corresponding bits are the same, the resulting bit is 0, and if two corresponding bits are different, the resulting bit is 1. The result after all bits have been XORed is the ciphertext. Decoding the message simply involves running another binary XOR on the key and ciphertext.

XOR Ciphers can be broken more than one way, unless they use a one-time pad. This special case requires that the key be completely random, the same length as the message, and (as the name suggests) only used once. Provided only the sender and receiver have the pad, the encoded message is truly secure.

Learn more about XOR ciphers here.