5 ms·
Military Cryptanalytics, Part III
- _wldu 6y ago"If there is any lesson for today, it’s that modern cryptanalysis is possible primarily because people make mistakes" Here's a toy one-time pad implementation I did (years ago) in C++. I just recently implemented it in Go too. These are pretty simple to write, but I wonder if I've made mistakes. code: https://github.com/62726164/padder https://github.com/62726164/padder blog: https://www.go350.com/posts/padder-a-one-time-pad-implementation/ https://www.go350.com/posts/padder-a-one-time-pad-implementa...
- enriquto 6y agoHow do you transmit the pad in the first place? I guess you have to specify that if you propose a complete system.
- RcouF1uZ4gsC 6y ago> How do you transmit the pad in the first place? That’s one advantage that a military crypto system has over a civilian one in that they already have well established physical identity and authentication. They can take advantage of that to deliver the one time pad. For example, before a ship goes on deployment, it can be loaded up with the one time pad. Similarly for a division being deployed.
- baud147258 6y agoI think the ship would be loaded with a big stack of one time pad, not just one, because that'd severely limit the number of message they could send
- filleokus 6y agoI don't have any knowledge about this, but an 8 TB SSD would probably last quite a while, especially for a ship with limited bandwidth out at see. (Of course there are probably multiple disks, not least for redundancy, since the space/weight concern is completely negligible)
- lb1lf 6y agoUneducated guess - the ability to quickly completely and utterly obliterating the pad would probably be a much more significant concern than space or weight. After all, you don't want your cipher desk, OTP and all to be overrun by opfor just as you are encoding "we are being boarded!"
- TheAdamAndChe 6y agoThe nice thing about a OTP is that it's only used once, unlike a typical cipher. If pads are lost, well that's fine because they weren't going to be used with anyone else.
- lb1lf 6y agoTrue, but with the (used) pads you can reconstruct past messages. (Provided you intercepted those, that is.)
- jandrese 6y agoSure, but it's also easy to have a system where the pad is destroyed after it is used. This would help insure that nobody messes up and uses the same bits twice as well.
- _wldu 6y agoYou can also have a separate set of pads that decrypt the messages to something entirely different from the real messages. I'm not aware of another crypto system that allows for this. Here's an example: $ padder -d -m c2wrbumxvj8gob34mxn46pxg29a6kxnwfhcaam3en-hr-2v -p ryxrvqnlhz04icqq6eg56cuhg10vlx5dff3ba44wg6ic-kd PlainText: we-are-moving-north-and-will-attack-at-the-pass $ padder -d -m c2wrbumxvj8gob34mxn46pxg29a6kxnwfhcaam3en-hr-2v -p zifs6d9dgk36k94m9d5x77jhj277ip59gw9btmv4j7in-kc PlainText: our-group-fled-south-to-the-city-we-sailed-east
- 35fbe7d3d5b9 6y agoMilitary crypto systems have rarely been based around one-time pads. One time pads are difficult to use and extremely slow in practice because you have to work by hand to decrypt a message. A cipher machine is hard to make mistakes with and can disseminate information quickly in both directions. That's why you don't load up ships with hundreds of pages of OTPs, you put an Enigma (or modern equivalent ;)) on board. One time pads are useful for espionage, and you can see examples of how they are used here[1]. They took advantage of how most espionage worked (and who knows, may still work!): different channels for sending and receiving. The numbers station read you a short message, and if you needed to send a message back you signaled your handler to meet in person at a prearranged place. The same thing that makes OTPs suck on ships make them excellent for sending short messages to spies. You can't hide an Enigma in a walnut, after all! [1]: https://www.cryptomuseum.com/crypto/otp/index.htm https://www.cryptomuseum.com/crypto/otp/index.htm
- Mvandenbergh 6y agoAlso worth noting that most military communications are only sensitive if broken quickly, secret messages sent in espionage might need to stay secret for decades against potentially new mathematical attacks and hardware developments.
- jandrese 6y agoOne time pads don't necessarily have to be pen and paper. You can distribute a MicroSD card with 128GB of random bits that is used to encode/decode messages. An additional advantage of a system like this is the OTP can be encrypted so if it is captured it can't be used to decrypt old messages without further getting key material from the end user (possibly with a pipe wrench). The biggest problem is that no matter what, the OTP ends up being some sort of physical medium that requires shipping to the end user. But really it's a scaled up version of the key distribution problem.
- 35fbe7d3d5b9 6y ago> An additional advantage of a system like this is the OTP can be encrypted so if it is captured it can't be used to decrypt old messages without further getting key material from the end user (possibly with a pipe wrench). That problem has already been solved and the websites you visit today (should!) be working the same way: https://en.wikipedia.org/wiki/Forward_secrecy https://en.wikipedia.org/wiki/Forward_secrecy > the key distribution problem That is the hardest problem, especially in a system where you've got military units in unfriendly areas.
- krisoft 6y agoShips receiving key material for a deployment is how you get a John Walker spy ring situation. You are right that the military has some advantages regarding key distribution, but it’s still not a trivial task.
- TedDoesntTalk 6y agoNumber stations :)
- bee_rider 6y agoWell, they do call it a toy implementation.
- arithmomachist 6y agoFascinating to see the highest state of the art of pre-digital cryptography, right before it was rendered obsolete. Very evocative that volumes 4-6 were planned but never completed, presumably because the first crop of modern encryption schemes were already outdating theses volumes as they were being written. I wish the NSA would declassify more records of what it managed to break in the pre-digital era, now that the methods are out of date and the people involved are mostly dead. It would be great for historians to see both what the agency was capable of in that period, and how its methods, together with its successes and failures, shaped history in the early Cold War.
- deleted 6y ago[deleted]