Everything Everywhere Daily: History, Science, Geography & More - Cracking the Enigma Code

Episode Date: December 11, 2023

During the Second World War, the Germans used what they thought to be an uncrackable encryption system.  It was a really good encryption system, and for the longest time, the Allies had a difficult t...ime cracking the code.  However, thanks to brilliant code breakers, a powerful computing machine, and German mistakes, the British were able to break the code.  Learn more about the Enigma Code and how it was broken on this episode of Everything Everywhere Daily. Sponsors BetterHelp Visit BetterHelp.com/everywhere today to get 10% off your first month ButcherBox Sign up today at butcherbox.com/daily and use code daily to choose your free steak for a year and get $20 off."  Subscribe to the podcast!  https://link.chtbl.com/EverythingEverywhere?sid=ShowNotes -------------------------------- Executive Producer: Charles Daniel Associate Producers: Peter Bennett & Cameron Kieffer   Become a supporter on Patreon: https://www.patreon.com/everythingeverywhere Update your podcast app at newpodcastapps.com Discord Server: https://discord.gg/UkRUJFh Instagram: https://www.instagram.com/everythingeverywhere/ Facebook Group: https://www.facebook.com/groups/everythingeverywheredaily Twitter: https://twitter.com/everywheretrip Website: https://everything-everywhere.com/ Learn more about your ad choices. Visit megaphone.fm/adchoices

Transcript
Discussion (0)
Starting point is 00:00:00 During the Second World War, the Germans used what they thought to be an uncrackable encryption system. And it was a really good encryption system, and for the longest time, the Allies had a difficult time cracking the code. However, thanks to brilliant codebreakers, a powerful computing machine, and German mistakes, the Allies were finally able to break the code. Learn more about the Enigma Code and how it was broken on this episode of Everything Everywhere Daily. What if your perceptions about the past were wrong? Throughline is a podcast that takes you back in time to uncover the parts of the story that may have gone unnoticed. It effectively turned day into night.
Starting point is 00:00:53 And how it shaped the world now. Time travel with us every week on the Thurline podcast from NPR. Codes and Ciphers have always been an important part of warfare. Commanders needed to give orders to units that couldn't fall into the hands of enemies. If you remember back to my episode on cryptography, cipher systems of some sort have been used since ancient history. There is evidence of some sort of encrypted writing in ancient Mesopotamia, India, Greece, and Rome. For most of history, encryption was tied to a physical document.
Starting point is 00:01:29 You could hide or conceal a document so the enemy wouldn't even know you had a document. However, with the advent of wireless radio communications, things changed. You could send communications quickly over long distances, but the communication could be picked up by anyone who was listening. When you know the enemy is going to have access to your encrypted communications, you need to have an extremely robust encryption system. There is a system that is extremely secure known as a one-time pad. A one-time pad is a system of random characters that are shared between two parties, and the system is guaranteed 100% unbreakable. However, there's a catch.
Starting point is 00:02:08 You can only use it once, and you really can't use it with multiple parties. If a central command wanted to communicate with multiple distributed units, you have to give everyone the same one-time pads, and if one of them fell into the hands of the enemy, then it would be able to decrypt everything. What you wanted was a system that was difficult to crack, and if a message was cracked, it didn't mean that you could crack any previous or subsequent messages. Such a system was developed in 1918 by the German electrical engineer, Arthur Sherbius. It was an electrical machine that could encrypt messages.
Starting point is 00:02:45 He received a patent for his invention and sold it under the name Enigma. The Enigma machine was an extremely clever device. At its core was the oldest method of encryption in the world, letter substitution. Letter substitution systems are extremely simple. Just take a letter of the alphabet and replace it with another letter, and then write the code using the replace letters. The problem is these systems are also very easy. to crack. They can be done almost instantly with the computer, and they can be done rather easily by hand as well. They're easy enough to crack that they're often used as puzzles and newspapers.
Starting point is 00:03:21 What was brilliant about the Enigma system, however, is that it changed the substitution after every letter. To have an understanding of how it worked, let me describe a basic Enigma machine. There were several different versions of the machine, but this basic description would apply to all of the versions. An enigma machine was about the size of a small cache register. At the bottom was a keyboard. Above the keyboard were rotors. Each rotor had 26 possible settings, which had to be set before encrypting or decrypting a message. Depending on the version of the machine, there could be anywhere from three to eight rotors. The rotors could have been selected from a larger number of rotors, such as three out of a possible five. In some machines, there was also an electrical
Starting point is 00:04:07 plugboard on the front just below the keyboard. For versions with the plugboard, each plug corresponded to a letter of the alphabet, and multiple cables would connect multiple letters of the alphabet together. At the top, there was a set of lights that also corresponded to each letter of the alphabet. When a message was to be encoded, the rotors were set to whatever the predetermined settings were for that day. Likewise, if there was a plugboard, those would have to be set to the preordained settings as well. The sender would type a key, which would then light up one of the letters at the top. However, every time a key was pressed, it would turn the rotors, in effect creating a brand new letter substitution for every single character. The plugboard added an extra layer of encryption
Starting point is 00:04:52 by electronically switching letters before it was sent to the rotors. If you had a three-rotor Enigma machine, taken from a set of five rotors, and 10 letter prayers connected on the plugboard, there would be almost 159 quintillion possible settings for the device. Decrypting the device would be doing the exact opposite. You would set the machine to that day settings, and then type in the encrypted letter, which would light up the decrypted letter at the top. Every day, the rotor settings would be changed according to a set schedule. So, even if you could somehow decrypt a given message, it would be useless the next day because the rotors would create a whole new system. If you wanted to decrypt a message, you needed an enigma machine with the right
Starting point is 00:05:38 rotors, and you needed to know the settings for that message. The Germans were extremely confident in their Enigma machines. They were used at all levels of the German military, and were used to transmit secrets with the highest classification. Needless to say, the protection of Enigma devices and the daily settings were a top priority. In the German Navy, the settings were actually printed on water soluble ink that would be erased if a ship were to sink. In the event that a ship were to be captured, the rotors were to be taken out and thrown overboard as the ship was abandoned. The first version of the Enigma machines were actually used by the German government as early as 1923, well before the Nazi party ever came to power. Over the years, various versions of the machine were rolled out to be
Starting point is 00:06:23 used by various branches of the military. Attempts to break the Enigma Code began well before the war started. It was truly a monumental task given the strength of the Enigma system. British cryptographers have gotten much of the attention, and more on that in a bit, but the Polish Cipher Bureau actually conducted the original work on the machines in the early 1930s. Poland had a greater and earlier incentive to crack the German code before any other European country did. Not surprising, the Poles had a great deal of difficulty in cracking the code. A Polish mathematician by the name of Marian Rieski made huge strides in understanding how it worked and weaknesses in the system.
Starting point is 00:07:05 One of the things that he realized is that there were flaws in the German procedures. First, they use a single setting for all of the messages on a given day. And second, they put a six-letter indicator with a message key at the top of every message. This was an encrypted command to tell the decrypting officer how to set their rotors, and this was done by the Germans up until 1938. This and other errors made by German operators made it possible for Reyeski to decrypt some of the messages without ever knowing the initial settings of the device. The Poles made many other advancements in cryptography in attempting to break the Enigma
Starting point is 00:07:41 Code, and also developed one of the first machines that could work on decryption. It was called a Cryptologic Bomb, or a Bomba. The Bomba was a brute force attempt at trying to solve the Rube. rotors. However, a general solution to the Enigma Code alluded them, and things got worse when the Germans added two more rotors that could be used to make up the three rotors. This increased the number of rotor combinations from 6 to 60. In 1939, when it looked like war with Germany was inevitable, the Poles began to share what they had learned with Britain and France. When Germany did invade, the Polish Cipher Bureau destroyed their machines and documents and evacuated
Starting point is 00:08:20 the team to the south and to Romania. They wound up in front. France at a site called PC Bruno, where they continued their work. British cryptographers from the British Cryptoanalysis Center in Bletchley Park visited P.C. Bruno several times. In January 1940, one of the researchers by the name of Alan Turing came to P.C. Bruno to work with the Polish and French team. P.C. Bruno and Bletchley Park worked closely together and had their own secure telegraph cable to communicate with each other. When the Germans invaded France in 1940, many of the P.C. Bruno team managed to flee to Britain, but some of them were actually captured. After the war, it was determined that none of the
Starting point is 00:08:58 cryptographers had disclosed anything that they knew. I want to stress the work done by Polish cryptographers because much of the story of cracking the Enigma Code focuses on Alan Turing and the team at Bletchley Park. While they do deserve a great deal of credit, as the team at Bletchley themselves recognized, their work wouldn't have been possible without the trail that the polls had blazed in the years before the war. After the invasion of France, the job of cracking the Enigma Code now fell to Bletchley Park and the team led by Alan Turing. Turing created their own version of a cryptographic bomb. This, like the Polish version, would try to brute force all 17,576 possible settings of the wheel orders. The bomb wasn't a computer, as we think of it today. It was electrical,
Starting point is 00:09:46 but it was mostly mechanical. The problem was they had to do this every year. day with a fresh new set of intercepted codes, and they couldn't guarantee that they could break the code every day. What they needed was a shortcut, some phrase that they knew in advance that they could use to cut down on the number of possible combinations. The eureka moment came when they realized that almost every message sent by the Germans ended in the exact same two words, Heil Hitler. This seemingly innocuous phrase was the Achilles heel that allowed the enigma code to be broken. Solving the known phrase, Heil Hitler, allowed them to decrypt the code for the day and read
Starting point is 00:10:26 everything rather quickly. The Americans were eventually led in on the project when they joined the war, and the Americans built their own cryptographic bomb, which was much faster than the British version. Keeping the fact that they had cracked the Enigma Coda secret was very difficult. They couldn't simply act on every bit of intelligence they had, or else it would give away the fact that they had cracked the code. They used just enough information to make the Germans think that they had gained the information from other sources like radar or spying.
Starting point is 00:10:56 Today, there are several original Enigma machines that can be found in museums around the world and in the hands of private collectors. Enigma devices have been sold at auction for as much as $547,000, and there are even replica enigma machines that you can buy. If you're like me, you might be curious how quickly the Enigma code could be solved using modern computers. Well, in 2017, an artificial intelligence program managed to crack the Enigma Code in 12 minutes and 50 seconds.
Starting point is 00:11:25 And to do it that fast, it required the use of 2,000 cloud servers. Today, Alan Turing is celebrated on the 50-pound note in the UK, and the Turing Award, given out by the Association of Computing Machinery, is considered to be the Nobel Prize in computer science. Breaking the Enigma Code was one of the most important strategic breakthroughs of the the Second World War, and the public wasn't even made aware of it until the 1970s. But since it became public, the breaking of the Enigma Code has become one of the most celebrated chapters in the history of the war, and the story has been told in books, movies, and on television.
Starting point is 00:12:00 Some historians believe cracking the Enigma Code may have shortened the war by two years and saved over 14 million lives. The work done on breaking the code didn't just help win the war, but it helped lay the foundations for modern computing and cryptography. And it was all because a group of Polish and British code breakers managed to break a code that was considered to be unbreakable. The executive producer of Everything Everywhere Daily is Charles Daniel. The associate producers are Peter Bennett and Cameron Kiefer.
Starting point is 00:12:34 Today's review comes from listener Lunar 1290 over on Apple Podcasts in the United States. They write, good job. The information is really helpful, especially at school. When I start learning it, I'm going to be the only one who knows what happened when I listen to the episodes, and I'm working my way from the bottom up. Thanks, Lunar. You will indeed find school much easier by listening to this podcast. Just make sure not to give the other students a hard time because you're so far ahead. Remember, if you leave a review or send me a boostogram, you too can have it read on the show.

There aren't comments yet for this episode. Click on any sentence in the transcript to leave a comment.