To decrypt: ciphertext XOR same key = plaintext 00100001 XOR 01101001 = 01001000 → 'H' ✓
XOR is its own inverse — decryption identical to encryption
Practical Problems
Why Vernam Isn't Used Everywhere
Key distribution — key must be securely shared before communication. As hard as the original problem!
Key length — key must be at least as long as all messages. For large files = impractical
True randomness — computer-generated "random" numbers are pseudo-random, not truly random
One-time use — reusing the key breaks perfect secrecy (WWII Lorenz cipher broken this way)
AQA Exam Style
Practice Question
AQA 7517 — Paper 2 Style
(a) Using a Caesar cipher with shift 4, encrypt the word "BYTE". [2] (b) Give TWO reasons why the Caesar cipher is considered insecure. [2] (c) A Vernam cipher uses the key 11010110 to encrypt the plaintext bit pattern 01001000. Show the ciphertext. [2] (d) State ONE condition that must be met for the Vernam cipher to provide perfect secrecy. [1]