pinehilljoe
Staff Sergeant
Any recommendations for a good book on the Enigma? or general codes of WW II?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Ad: This forum contains affiliate links to products on Amazon and eBay. More information in Terms and rules
Yes, that is one of the weaknesses in the encryption.Enigma will not return the same substitutes in any given human lifetime. "HH" will never in our experience return as the same two letters if they are transmitted through an Engima.
For those interested, here's an Enigma emulator: Enigma Machine Emulator - 101 Computing
Yes, that is one of the weaknesses in the encryption.
Actually it was a weakness. Because no letter encrypted to itself, this made "cribbing" easier, especially in the "header" part of an encrypted message. This and the highly formal way the Germans used the "header" or preamble in messages meant that you can align a plaintext crib easier. Simply shift the plaintext crib left to right in the first part of the message and note any place where the characters match. Then the crib cannot be contained in that strip of encoded characters and you keep shifting right to find the small group "possibles" where the crib can be found. This fact was used by the British to set the "diagonal board" on the bombes. Because no character encrypted into itself, this also resulted in certain "cycles" of possibilites and impossibilities in the encryping (based on mathematical group theory, first used by the Poles) and this allowed for further "tuning" of the plug-boards on the bombes."Weakness"? It's a strength, in that you cannot get a crib into the code by hints like letter-frequency/word-placement/grammar and so on. If the letter "E" shows up as "W" every time, that will be an in.
The more irregular you make a code, the more secure is that code.
The fact that you never get the character that you put in is a weakness as it's already deviating from pure randomness."Weakness"? It's a strength, in that you cannot get a crib into the code by hints like letter-frequency/word-placement/grammar and so on. If the letter "E" shows up as "W" every time, that will be an in.
The more irregular you make a code, the more secure is that code.
Actually it was a weakness. Because no letter encrypted to itself, this made "cribbing" easier, especially in the "header" part of an encrypted message. This and the highly formal way the Germans used the "header" or preamble in messages meant that you can align a plaintext crib easier. Simply shift the plaintext crib left to right in the first part of the message and note any place where the characters match. Then the crib cannot be contained in that strip of encoded characters and you keep shifting right to find the small group "possibles" where the crib can be found. This fact was used by the British to set the "diagonal board" on the bombes. Because no character encrypted into itself, this also resulted in certain "cycles" of possibilites and impossibilities in the encryping (based on mathematical group theory, first used by the Poles) and this allowed for further "tuning" of the plug-boards on the bombes.
From the Wiki page on "Enigma Bombe":
"The Enigma encryption is a self-inverse function, meaning that it substitutes letters reciprocally: if A is transformed into R, then R is transformed into A. The plugboard transformation maintained the self-inverse quality, but the plugboard wiring, unlike the rotor positions, does not change during the encryption. This regularity was exploited by Welchman's "diagonal board" enhancement to the bombe, which vastly increased its efficiency. With six plug leads in use (leaving 14 letters "unsteckered"), there were 100,391,791,500 possible ways of setting up the plugboard. An important feature of the machine from a cryptanalyst's point of view, and indeed Enigma's Achilles' heel, was that the reflector in the scrambler prevented a letter from being enciphered as itself. Any putative solution that gave, for any location, the same letter in the proposed plaintext and the ciphertext could therefore be eliminated."
The fact that you never get the character that you put in is a weakness as it's already deviating from pure randomness.
Actually, it is not infinitesimally small. The probability of 2 identical adjacent characters encrypting into a different set of 2 identical characters is 1/625, or 1/(25*25), on the Enigma.That's not my point, though. I wasn't speaking about it not being possible to encrypt as itself, which is indeed a weakness.
I was pointing out that no matter which other letter it encrypts to, the odds of encrypting to that same of the other 25 letters is infinitesimally small, which complicates any solution. That being said, it can still show up twice as the same substitute letter. This is a subtle but palpable difference.
See above.
Actually, it is not infinitesimally small. The probability of 2 identical adjacent characters encrypting into a different set of 2 identical characters is 1/625, or 1/(25*25), on the Enigma.
I don't understand this argument. It is universely accepted that the Enigma not ever encrypting a letter into itself was a huge advtantage in the first step into cracking a daily key. Turing even worked out an optimum length of a possible plaintext crib: too short and the bombe would probably hit more than 4 false "stops"; too long and the probability of a first wheel turnover increased causing it to not get a "stop." Cribbing had to be done first before a bombe run was even contemplated, as the cribs determined the diagonal board and other settings of the machine. If the Enigma were not "crib-able" there would have been no bombes ever built. (The Poles invented the first ones, which were crude but worked.) So the fact that Enigma cyphertext was subject to cribbing is the first and foremost strategy of attack. Everything starts there.And how many "E"s are in the sentence that don't convert identically that will confuse the decrypt? For reference, the last sentence had seven "E"s. Now your difficulty is much larger.
Also, .0016 is pretty small when carried out over the course of the entire message ... and that's for the most common letter in both languages. .04 carried exponentially seven times means yeah, you've got a lot of clutter and a tiny chance of one repeat.
"So solving Enigma messages, for example, required cribs. The famed bombes worked on the principle of matching a ciphertext with a suspected plaintext to see if this would lead to a possible arrangement of rotors and plugboard connections that would constitute a "legal" key. This would then unlock other messages enciphered with that key. But this method required the help of a plaintext, known or guessed. Pure cryptanalysis was already dead."
"A major weakness of the system, however, was that no letter could be enciphered to itself. This meant that some possible solutions could quickly be eliminated because of the same letter appearing in the same place in both the ciphertext and the putative piece of plaintext. Comparing the possible plaintext Keine besonderen Ereignisse (literally, "no special occurrences"—perhaps better translated as "nothing to report"; a phrase regularly used by one German outpost in North Africa), with a section of ciphertext, might produce the following:"
I don't understand this argument. It is universely accepted that the Enigma not ever encrypting a letter into itself was a huge advtantage in the first step into cracking a daily key. Turing even worked out an optimum length of a possible plaintext crib: too short and the bombe would probably hit more than 4 false "stops"; too long and the probability of a first wheel turnover increased causing it to not get a "stop." Cribbing had to be done first before a bombe run was even contemplated, as the cribs determined the diagonal board and other settings of the machine. If the Enigma were not "crib-able" there would have been no bombes ever built. (The Poles invented the first ones, which were crude but worked.) So the fact that Enigma cyphertext was subject to cribbing is the first and foremost strategy of attack. Everything starts there.
Here's an excerpt from David Kahn's 2002 speech at the NSA:
From the Wiki article "Cryptalysis of the Enigma" is the following:
View attachment 866840
Ah okay, I misunderstood you there.That's not my point, though. I wasn't speaking about it not being possible to encrypt as itself, which is indeed a weakness.
I was pointing out that no matter which other letter it encrypts to, the odds of encrypting to that same of the other 25 letters is infinitesimally small, which complicates any solution. That being said, it can still show up twice as the same substitute letter. This is a subtle but palpable difference.
See above.
Ah okay, I misunderstood you there.
But having said that, interestingly, enigma is still crackable by using an index of coincidence. The idea is that you optimise each part of the settings one by one. The fun thing is that you get a slightly better index value if you guess one of the settings (a rotor, reflector or wire) right. So by focusing on a rotor, then move to the next and so on, you can speed up the process considerably.
You of course need to know what language the message is and you need a hell of a lot more calculation power than what was available in the '40ies.
The Poles were absolutely the first to recognize the weaknesses and exploit them, brilliantly. ("Nothing concentrates the mind like having a 'gun' pointed at it.") They were prescient to contact the French and British secret services, realizing that all their work would be lost in a German invasion, which was appearing inevitable. Their contributions are very much "underrated" in the history narratives in books about Enigma. The British would not even allow the Poles to work at Bletchley but assigned them lower level codes and ciphers to work on, at least to the ones that managed to reach Britain. Since they were "foreign nationals" the British didn't consider them 100% trustworthy, while at the same time an upstanding member of the British Upper-Class Old Boy Network, Kim Philby, was giving the secret to the Russians. I believe, also, that the British simply wanted all the historical credit for the Enigma cracking and, since they could keep everything secret, they more or less pulled that off. Until, that is, the 1970's - 1980's when the truth came out. Others have spoken of this attitude of MI6 and, IMO, they are correct.I'd say that no investigation of WW2 codes and Enigma/Ultra is complete without looking at the Posnan School of Cryptography. Sorry, I don't have any books to recommend. But I visited the school in Posnan in 2024, and they have an excellent learning experience. Played down by the British (I also visited Bletchley Park) is the contribution made by the Poles, who already decoded Enigma routinely before WW2 started.
In fact there was and is no time limit on classified materials. Documents were normally released to the National Archives under the "30-year rule" unless "retained by department" for various reasons of security, international relations or plain old embarrassment. Even the released files could be "weeded" and many are simply destroyed if considered of no historical importance: you will see file jackets in the National Archives marked "preserve". As far as I know, no MI6 files have ever been released although wartime files of MI5 and SOE have. Winterbotham basically decided to take a chance, IIRC (check Wikipedia!) after something had been published in France.The Ultra Secret by F W Winterbotham came out in about 1976 just after the time British time limit on secret materials expired. The author skims through a lot and he did not have a lot, if any, official documents to refer to. It was probably written based on memories, but it makes good reading. He was involved in the distribution of the intercepted messages after they had been analyzed.
It still bothers me that WW2 historians don't consider the effect those tip had on campaigns and the war in general.
When I visited Bletchley Park in 2019 and 2024, full credit was given to the Poles, including a replica of their "Bomba" machine:I'd say that no investigation of WW2 codes and Enigma/Ultra is complete without looking at the Posnan School of Cryptography. Sorry, I don't have any books to recommend. But I visited the school in Posnan in 2024, and they have an excellent learning experience. Played down by the British (I also visited Bletchley Park) is the contribution made by the Poles, who already decoded Enigma routinely before WW2 started.
When I visited Bletchley Park in 2019 and 2024, full credit was given to the Poles, including a replica of their "Bomba" machine:View attachment 867718