Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m trying to solve a question about one time pads but I\'m not sure if my assu

ID: 647612 • Letter: I

Question

I'm trying to solve a question about one time pads but I'm not sure if my assumptions are correct.

I am to assume that I have a one time pad with perfect secrecy. This one time pad is used to encrypt a message of 7 bits in length (message space size is 2^7). This encryption yields a ciphertext of "0110011". What is the probability that the encrypted message was "1001001".

My understanding of one time pads is that if we assume the pad has perfect secrecy, then we can no nothing about the message given the ciphertext and thus we cannot determine the probability. Am I right in my assumption?

Explanation / Answer

Actually, you are quite correct; you have not been given enough information to determine the probability.

The piece of information that you have not been given is the probability distribution that the plaintext was originally chosen from. Perhaps all 128 possible plaintexts were chosen with equal probability (that is, with probability 1/128). Perhaps the plaintext 1001001 was chosen with probability 0.25, and the plaintext 0110110 was chosen with probability 0.75, and all other plaintexts had zero probability. The point is that you do not know.

The entire point of a one time pad is that knowledge of the ciphertext gives the attacker no new information about the probability distribution of the plaintext; that is, the ciphertext does not make any specific plaintext any more or less probable. The question asks you about the probability distribution given a specific ciphertext; we know that it is the same as it was without the ciphertext - however, we don't know what the original probability was.