D
Deleted User
Guest
One-time pads are said to be mathematically impossible to crack provided you only use them once. I was thinking about them the other day and thought of a possibility that it may leak plaintext. One-time pads are a very long string of random numbers*.
Let's pretend I want to send the string "Fuck you Costello" to someone here. We have already shared the one-time pad and it is not compromised.
In this example the one-time pad successfully distorts the plain-text beyond recognition. The chance that every bit in the one-time pad is 0 is 1/2^136. The next part of the maths is beyond me. If you are a spy using a 1TB one-time pad then perhaps there is a realistic chance that somewhere in the pad there is a long section of 0's. In real-world situations if there is a byte consisting of all 0 or 1 bits will it be removed from the pad?
* Random in the sense that the distribution of bits is statistically random and unpredictable. The philosophical debate of truly random numbers is beyond the scope of this post.
Let's pretend I want to send the string "Fuck you Costello" to someone here. We have already shared the one-time pad and it is not compromised.
Code:
ASCII: F u c k y o u C o s t e l l o
String: 01000110 01110101 01100011 01101011 00100000 01111001 01101111 01110101 00100000 01000011 01101111 01110011 01110100 01100101 01101100 01101100 01101111
Key: 00010000 01100001 00010000 10000000 11100001 00000100 01100001 00100000 10100101 00010000 10011100 11100100 00100000 11011100 01001000 11010100 10011100
Cipher text: 01010110 00010100 01110011 11101011 11000001 01111101 00001110 01010101 10000101 01010011 11110011 10010111 01010100 10111001 00100100 10111000 11110011
* Random in the sense that the distribution of bits is statistically random and unpredictable. The philosophical debate of truly random numbers is beyond the scope of this post.




