3

I have 10 cipher texts ciphered with One Time Pad (OTP) using the same key.

I need to recover the key (or in other words, to recover the 11th cipher text which I assumed would require me to recover the key first).

I followed a technique called "Crib Drag" described in: Taking advantage of one-time pad key reuse? Simply, by XORing the word " the " (including spaces) with the result of (C1 XOR C2), I could recover 5-letters that make sense to me that it is a plain text.

However, I do not know whether this plain text belongs to P1 or P2.

Can you help me how to know if the plain text belongs to P1 or P2 ? How can I recover the key bytes if I could recover letters from P1 or P2 ? How can I check whether they belong to P1 or P2 ?

I tried several attempts but no hope. Please, help me to continue and recover the key using this method.

user2192774
  • 211
  • 1
  • 5

1 Answers1

2

Assume that $P_1$ contains " the ". In that case you can get the key stream by XOR'ing " the " with $C_1$, lets call this key stream $K^1$. If this key stream is correct then $P_3^1$ should make sense, where $P_3^1 = K^1 \oplus C_3$. If $P_3^1$ doesn't make sense then you can create $K^2$ and $P_3^2$ from $C_2$ in using an identical calculation and check that.

Of course, as you've got 10 ciphertext you might as well check against $C_3$ to $C_{10}$. They all should make sense if you've got the right key stream at the location you are testing. Beware though that some professors find it funny to introduce single "mistakes" in the plaintext, forcing you to perform statistics (or "by eye" verification) instead.

Maarten Bodewes
  • 96,351
  • 14
  • 169
  • 323