Suppose in order to get a message across enemy lines, we need to choose an initial secret key say, 100110. What will be the decrypted cipher when the original message is 010010011.
Suppose in order to get a message across enemy lines, we need to choose an initial secret key say, 100110. What will be the decrypted cipher when the original message is 010010011. Correct Answer 110100
In order to decrypt the given cipher text, we need to XOR each bit with the corresponding bit in the secret key. As, the cipher text is longer than the secret key, wrap around the remaining cipher text and begin again at the starting. When there will be a chance to decrypt the 7th bit of the cipher text, XOR it with the first bit of the secret key. Hence, after decrypting every bit in the cipher text, the original message will be 110100.
মোঃ আরিফুল ইসলাম
Feb 20, 2025