Today has no practice yet.0/30 daily XP0 Sparks0 XP

Crossover mission · Silicon Lab × Qubit Lab

The XOR cipher

XOR outputs 1 when its inputs differ. XOR a letter’s 8 bits with 8 key bits and you get scrambled bits; XOR them with the same key again and the letter comes back, because x ⊕ k ⊕ k = x.

With a truly random key as long as the message, used once, this one-time pad cannot be broken. The hard part is sharing the key. Qubit Lab’s BB84 protocol, coming in a later chapter, shares one using single photons.

Decrypt the intercepted word with the key, then answer what goes wrong when a key is reused.

Best after Silicon Lab Level 2.

ByteCipherKeyCipher ⊕ keyLetter
11111011110110101·
20010010101101100·
31000011011010010·

Letters are ASCII: A is 01000001, B is 01000010, and so on.

Two messages are sent with the same key. What can an eavesdropper do?