Exam-style question
Try this first
Use the following simple Vernam-cipher convention: represent A to Z as 0 to 25; encryption is c = (p + k) mod 26; decryption is p = (c - k) mod 26. Encrypt the plaintext DOG using the key QHF, then decrypt the ciphertext to recover DOG. Explain why the Vernam cipher is considered to have perfect security and state the rule about reusing the key.
Answer and explanation
Concise answer
Using A = 0, B = 1, and so on: D is 3 and Q is 16, so (3 + 16) mod 26 = 19, which is T.
Why this is correct
The same key values are added during encryption and subtracted during decryption, using modulo 26 to keep values within the alphabet. Perfect security depends on the key being uniformly random and never reused. This distinguishes the Vernam cipher from ciphers whose security is based on computational difficulty.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
