CS FundamentalsHardGATE CS · security placement

A developer encrypts two different messages with the same one-time-pad key K: C1 = M1 ⊕ K and C2 = M2 ⊕ K. What can an eavesdropper holding C1 and C2 compute without knowing K?

  1. A. Nothing, because a one-time pad stays perfectly secret
  2. B. K itself, by XORing C1 with C2 and reading off the result
  3. C. M1 ⊕ M2, by XORing the two ciphertexts together
  4. D. M1 alone, by XORing C1 with C2 and then with C1 again

Correct answer: C. M1 ⊕ M2, by XORing the two ciphertexts together

C1 ⊕ C2 = M1 ⊕ M2 because the key cancels. Guessing likely words in one message (crib-dragging) then exposes the other. Perfect secrecy holds only if the key is never reused.

More Computer Networks questions

Exams that ask this topic