What is XOR Encryption?

H4cKL0rD picture H4cKL0rD · Jan 8, 2010 · Viewed 28.5k times · Source

I have heard about people starting encryption and thought it may be something I would like, so I checked XOR and can't make any sense of it. So can someone explain to me what XOR is ?

Answer

z  - picture z - · Jan 8, 2010

you take a key, such as 0101, then you use that to XOR your string (in binary format) to achieve an encrypted string.

0101 XOR <-- key
1011 <---- original message
----
1110 <-- send message

You send 1110 to your receiver. That receiver, then takes the received string and XORs it with the key to obtain the original message:

1110 XOR <--- received message
0101 <-- key
----
1011 <--- original message