I can't understand a question I came across in a course.

You observe three ciphertexts all resulting from encryption of ASCII plaintexts containing English letters and spaces only, using the one-time pad and the same key. The 10th byte of the first ciphertext is 0xA8, the 10th byte of the second ciphertext is 0xED, and the 10th byte of the third ciphertext is 0xBD. What is the 10th ASCII character of the third plaintext?

I XORed 0xA8 and 0xBD and got 00010101 I XORed 0xED and OxBD and got 01010000 so clearly 0xED is a space and 0xBD is a character.

What I don't understand is why it is the letter 'p'.

Thank you in advance.

  • 1
    $\begingroup$ Hint: from the (correct) observation that (restricting to the 10th byte) the value 0xED is the ciphertext for space (value 0x20), find the value of the key byte, then the plaintext byte for ciphertext value 0xBD, then the character that is represents. Nitpick: the statement would be better with "using the one-time pad but the same key". $\endgroup$ – fgrieu Sep 12 '18 at 6:33
  • $\begingroup$ ah OxED XOR 0x20 is the key. Gotcha. Thank you so much!! :) $\endgroup$ – Lilz Sep 13 '18 at 7:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.