300 points · by petecooper · 3y ago · 138 comments
Until a WREN noticed that the message never contained the letter Z.
One weakness of that generation of Enigma was that it could not self-encode a letter. That is, A was never encrypted to A.
This had no letter Zs. A statistical improbability. Unless, so she reckoned, the entire message consisted of only the letter Z repeated.
Apparently, their best guess was that a bored soldier sent a stream of Zzzzzz to a friend. That was enough to crack that day's key.
Of course, every guide at Bletchley has a range of stories they tell credulous geeks. But it is a delightful tale of how OpSec is everything.
That's not just "a weakness", that is afaik the central weakness that allowed the breaking of the enigma in the 30s by Polish codebreakers.
Probably more of a flaw if your message is in German or US English.
There were tons of bogus messages where the wheels were set to whatever German teenager’s favorite four letter swear word was.
https://www.plushbeds.com/blogs/green-sleep/how-did-the-lett...
I found this:
https://crypto.stackexchange.com/questions/33628/how-many-po...
which says the key space is something like 10^20 or 10^23.
A modern supercomputer does something like 10^18 FLOPS. I assume that an enigma decryption is considerably more than a single floating point operation, but presumably just a few orders of magnitude.
So... if I'm reading that right, we're talking about months, perhaps?
TL;DW: With some clever tricks, and the advantage of hindsight, it can be done reasonably quickly on a modern computer.
It's still extremely cool, don't get me wrong, but I don't think it's really what OPs asking. Given what's mentioned in the video (~12:50) and what some other commenters have mentioned I get the impression an actual brute-force is not really practical.
It's text. It's not something formatted.
If I encrypted a JSON string, gave it to you, you can brute-force all day trying to parse the output as a JSON string. If it works, you probably have it right.
But here? Because of how the Engima machine works you still get an output. And since we don't need to decode this output (like JSON to an actual JavaScript Object) we don't have that many ways of validating the output.
It's German from 1945. Abbreviations, different (older) spelling, spelling mistakes, ... all make it really hard to distinguish real output from incorrect output.
For English, about 13% of letters are "e", so if the frequency is too far off that it is probably not the right key; likewise, if 13% of the letters are "z" it is also not likely to be the right key. By applying frequency checks to the most and least common letters it should be a fairly strong filter for plausible keys.
UUUVIRSIBENNULEINSYNACHRXUUUSTUETZPUNKTLUEBECKVVVCHEFVIERXUUUFLOTTXXMITUUUVIERSIBENNULZWOUNDUUUVIERSIBENNULDREIZURFLENDERWERFTLUEBECKGEHENXFONDORTFOLGTWEITERESX
There's enough code language being used in these messages that frequency analysis is not going to a major help (especially since it doesn't work well on very short texts anyways).
This gives you some crude form of error checking.
The rest of it as you mentioned makes it difficult to determine, data mining the possible results for common abbreviations from other plaintext could narrow.It down.
Sure, you could argue that it’s not quite as unambiguous as JSON but, in the realm of all possible plaintext, I’d say JSON and 1945 German aren’t too far apart in terms of likelihood of getting a false positive on a string of non-trivial size.
If you want a bit more certainty you could just try it on another string (which is the next step in the process either way), and then another. At least to me the constraints of “German and a char doesn’t map to itself” seem like pretty limiting factors here.
I'd make a fast approx check for some of these properties that can run during brute force, then feed anything that passes that check to a better check, then finally to a human (maybe nowadays put an LLM before the human stage).
There's a chance to miss the translation if it doesn't match other messages but this seems like a decent approach.
Edit: Though it might have been that purely electronic cryptographic machines were just cheaper and stronger by that point.
Give or take a few centuries, it's very far from the age of the universe.
Given that the message is corrupted and the recipient with the key couldn't decode it, it's not surprising that the message remains unbroken. Even brute force isn't going to work if you start with garbage.
https://web.archive.org/web/20230626181049/https://enigma.ho...
(I wasn't expecting this to hit #1)
For all we know, some bored German submariner sent garbage over the radio as protest; this message was sent two days after Hitler committed suicide, 7 days before VE day. (8 days if you're of the Soviet persuasion) Morale and discipline has a tendency to break down under those circumstances.
Or it could be a transcription error. Modern cryptanalysis tends to be more resilient to transcription errors; one character wrong is gonna be ok, one character inserted/deleted will tend to produce two messages, one with garbage after the insertion/deletion and another with garbage before it. But Enigma messages were...terse, so a half-successful decrypt that gets half garbage and half plaintext might still be recognized by the cryptanalysis algorithm as the wrong key. I expect there would have to be at least two transcription errors to cause both the original German commo to be unable to decrypt it and modern attempts to fail.
Once you have a few months experience in Morse code you are able recognize who is "talking" by the way they operate the key. The radiomen would know pretty quick if some new guy came started sending them bogus messages.
An enigma message would be typed in to the machine and the output characters written down on a piece of paper, then the message would be transmitted over Morse by hand, transcribed to paper at the other end, then typed through the correspondingly configured Enigma machine to obtain plaintext.
- 6 days after US and Soviet forces linked up bisecting Germany
- 1 day after Hitler's suicide
- 5 days before the unconditional surrender of the Flensburg Government
"In the old days, if someone had a secret they didn’t want to share, they went up a mountain, found a tree, carved a hole in it, and whispered the secret into the hole. Then they covered it with mud and leave the secret there forever." - Wong Kar Wai/In The Mood for Love
They could be scored by decrypted content matching structure of priors and context. Along with char difference from the encrypted message on record.
Decoding using enigma was our last question. The word "That's all folks" was encoded in five different ways & configuration for enigma machine would keep changing according to the time of the day. We took reference from computerphile videos & people really loved solving this.
We redirected them to an online enigma decoder (Forgot the link)
Good old times :-)
(A funny sidenote was that he wasn't and admin in our school and had now way of deactivating the screensaver then to walk from desk to desk every 14 minutes and move the mouse.)
Message decrypted but what could it possibly mean?? Raises more questions than answers...
UND REISIND HERZIG ABER MISATOKATSURAGI IST BESTE MADCHEN.
https://ovid.cs.depaul.edu/Classes/CS233-W04/Papers/PurpleMa...
Japan today still hasn't fully grokked how encryption works, as evidenced by the widespread corporate practice of "PPAP", which means sending sensitive info as a password-protected zip file via email, then sending the plaintext password in a separate email to the same recipient address.
https://ja.wikipedia.org/wiki/PPAP_(%E3%82%BB%E3%82%AD%E3%83...