One-time pad decryption

You and I are trying to get a message across enemy lines, and we don't want it intercepted. Luckily, we decided on an initial secret key of 01011 . Unluckily, I need to get you a message that's a bit longer than that. Decrypt this ciphertext to get my original message 10001011 .

You'll need to wrap around the key in order to solve this one. In other words, when I encoded this message and I got to the 6 th 6^\text{th} bit of my message, I would start back at the first bit of the key.

11010110 11010001 11010100 11010010

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Alex Chumbley
Aug 21, 2016

To decrypt this cipher text, XOR each bit with the corresponding bit in the secret key. Because the cipher text is longer than the secret key, however, we must wrap around and begin again at the beginning.

To decrypt this one bit at a time, start with the first bit, 1 , and XOR it with the first bit of the secret key, 0 . 1 and 0 are different bits so the answer is 1 . XORing the second bit of the cipher text, 1 , with the second bit of the key, 1 , gives us a 0 because they are the same bit. Continue this process for the entire cipher text. When it comes time to decrypt the 6th bit of the cipher text, XOR it with the first first bit of the secret key. After you've decrypted every bit in the cipher text, the answer is 1101000 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...