Re:What are some innovative encryption methods?
by hawski on Tuesday October 31, 2017 @10:20AM
(#15593404)
I was wondering if using randomly generated shared 1GB or so file as a kind of one-time pad would be useful. Xor data with it using it as circular buffer, do messages must be of the same length or it will go out of sync.
[ Parent
| on HN ]
Re:What are some innovative encryption methods?
by mseebach on Tuesday October 31, 2017 @10:35AM
(#15593521)
If you reuse your pad, you're vulnerable to frequency analysis, which is literally the oldest trick in the book. You might as well send in plaintext.
Re:What are some innovative encryption methods?
by hawski on Tuesday October 31, 2017 @06:46PM
(#15597314)
How easy would it be if you would go through the entire 1GB and only then from the beginning? I guess it is a question of how big messages are.
Re:What are some innovative encryption methods?
by mseebach on Wednesday November 01, 2017 @04:00AM
(#15599500)
If you're only reusing it once, then I guess frequency analysis gets tricky, but the problem you have instead is that you have provided a validation function: Where, using a one-time-pad, any key that yields plausible cleartext is a possible candidate, if you have two cyphertexts encoded with the same (piece of) the one-time-pad, only keys that result in plausible decrypted cleartext for both cyphertexts are possible candidates.
This was how an early break-through in breaking the Enigma was achieved (tangentially, as the Enigma isn't a one-time-pad, but the analysis is similar): Codes were rotated daily, but the first message sent out every morning with the new codes was a weather-report. Thus, the team could immediately cull the search-space to keys that would decrypt to "Weather on [date]" for the first n characters.