Score:1

Is it possible to decrypt my message if encrypt it twice using different keys each time?

ke flag

Suppose I want to encrypt $mssg$ using One-Time-Pad, and I want the $mssg$ to be encrypted twice.

Once with $k_1$ and second with $k_2$

Is it still possible to detect my $mssg$?

lets say:

  • $c_1 = mssg \oplus k_1$
  • $c_2 = mssg \oplus k_2$

$c_1 \oplus c_2 = k_1 \oplus k_2$

Score:0
gb flag

That is perfectly safe, there is no way you could recover the message from that as long as k1 and k2 truely are uniformly random and independent.

This is because both ciphertexts are perfectly secure, and xoring them would give you the xor of two entirely random things (k1 and k2) which would be completely meaningless.

kelalaka avatar
in flag
Yes, I did. There is another issue that if the two messages are sent to two parties, then the observer can conclude that the same message is sent to two parties. Generally, I do not upvote OTP answers anymore...
meshcollider avatar
gb flag
How can they do that? Just assume due to length?
kelalaka avatar
in flag
Of course, that is a general issue that is not considered theoretically, however, exists in practice. For example, CryptDB solved this issue to extend the string to the same size, otherwise, there is a distinction on the database, etc... However, if a new long string is added, it is a hell of a mess...
meshcollider avatar
gb flag
Yeah, agreed. But if you are sending only two messages then it would be fine to pad both to an arbitrary length. There is no other way to tell the messages are the same.
kelalaka avatar
in flag
That is a solution in this case, in general, this is not as easy as this.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.