Loving the Enigma

Few inventions have ever been as appropriately named as The Enigma, the message-encoding machine created by the Nazis in WWII. Clunky, heavy, and ridiculous-looking, it was also amazingly advanced for its time. This analog, typewriter-driven machine was the closest thing to a computer that had ever been created. Picture a wooden box full of heavy metal and dozens of wires that managed to be slick, fast, and mesmerizingly complex.

It was a cryptographer’s dream.

And it should have worked. It would have been infallible, if only …

enigma-machine2

Anyone who has ever worked a cryptogram puzzle in the daily newspaper knows how easy it is to crack a simple alphabet-substitution cypher. You pick out common words like “the” or “a” and with a little patience you’ve worked out the whole code.  Of course, the longer the message, the easier it is to decipher. If you’ve got a full paragraph to work with and it’s stocked with common small words, it’s usually quite easy. If it’s only a word or two, it’s nearly impossible … unless you have another snippet of code with the same substitution scheme to compare it to.

Which leads us to the genius of the Enigma.

Caesar_cipher

First, they designed it like an electric typewriter. But instead of having the letter “D” on the keyboard print the letter “D” on paper, it was randomly assigned to another letter. They would use the cables to match the “D” on the keyboard to print an “A,” so the person sending the message was able to type it at a normal speed and what came out was encrypted.

It is exactly the same effect as when you accidentally put your hands in the wrong spot on the keyboard before you begin typing and get out half a sentence before you realize you are typing gibberish.

But this was not only intentional, it was functional. Every message typed this way was able to be deciphered just as quickly by the counterpart on the other end of the message, because they had set up their own Enigma machine to reverse the message. The recipient merely had to type it out on his end and the uncoded message just appeared.

Before computers, this was an amazing breakthrough.

At its heart, though it was still a substitution cypher, which could have been broken … until they added the “tumblers.”

These doodads changed the connection from the keyboard to the typed letter with every keystroke. So you started your letter with the “D” button hooked up to print “A.” But the moment you type the first letter, the tumblers moved, which now hooked the “D” button to “K” instead. So if you typed DDDD, what came out might be AKVU.

Like I said, genius!

Imagine trying to crack a substitution code where every letter used a completely different code!

enigma-machine

Every morning, they reset the tumblers and started with a fresh, random code. The Germans developed instruction books for everyone with an Enigma machine to show them how to set it up each morning so that everyone in their message chain would have the same coding structure each day. Thus, the Allies had to begin cracking fresh codes each morning with absolutely no prior messages to help them out.

The men who approved the Enigma were experts at cryptography and knew exactly what the Allies would be looking for in cracking the codes, so they also mandated a few simple rules for the people sending the messages:

  • Never repeat phrases
  • Avoid overuse of common words or phrases
  • Avoid using people’s names unless absolutely necessary

And this is where it fell apart because, unfortunately for them, the people sending the messages didn’t know or care about rules of cryptanalysis.

Some general got the idea to send weather reports each day, just after dawn. As soon as the Allies realized this, they started looking for the words “cloudy” and “rain” and bada-bing they had their first clue of the day handed to them.

My favorite of the broken rules comes from the telegraph guys themselves, stationed far from home, feeling like a small component in the scheme of things. They had to send a quick test phrase at the start of each day to their sending/receiving counterpart, to make sure everyone’s machines were in sync. These were supposed to be random words pulled from a dictionary, but instead they got in the habit of using the name of their girl back home, or their hometown. It took the Allies a bit longer to catch onto this, but once you find out that the bloke on the 6 am shift is starting every morning pining for his girl and lovingly typing “Frau Gisela,” you’re well on your way to cracking every code he sends from there on out.

Now, I’m not saying that any of this was easy for the Allies. If they hadn’t gotten their hands on a working Enigma machine after seizing a submarine, they may never have figured out a single message. They also intercepted several code books that showed them how they were being configured and reset each day, which, though they only gave codes for a single month, also clued them in to the overall rules.

And I’m not trying to take anything away from Alan Turing, the man credited with cracking the Enigma by building the world’s first computer, A.K.A. the geek’s dreamboat.

But it is amusing to realize that the Nazis, feared worldwide for their totalitarianism and harsh punishments for rule-breaking, couldn’t even get their own army to follow simple procedures about sending top-secret messages. People have to find ways to be individuals, and that usually means breaking rules.

Or, to look at it another way:
The world is shaped by people taking shortcuts because they’re certain their way is “good enough.”

Leave a comment

Blog at WordPress.com.

Up ↑