03 / 08 · Math basics
XOR
The operation that mixes a key into data, and takes it back out.
XOR is the simplest way to combine data with a key: wherever the key has a 1, the bit flips. Doing it again with the same key flips it back, which is exactly what encryption and decryption need.
Flip
0
0
How it works
0
01 / 12 · XOR
Flipping a bit
Take one bit and flip it: 0 becomes 1, 1 becomes 0. Flip it again and it is back where it started. Remember that second part.