Binary XOR (eXclusive OR).

If cleartext is... And key value is... Then the result is...
0 0 0
0 1 1
1 0 1
1 1 0

Using a binary key you can encrypt the data, with a basic XOR cipher. As long as you have the binary key you can decrypt the data.