In 2001, none othÂer than Sir Mick JagÂger bought the rights to a novÂel by Robert HarÂris called EnigÂma. The novÂel, a ficÂtionÂalÂized account of WWII British codeÂbreakÂers, then became a feaÂture film, writÂten by Tom StopÂpard, proÂduced by Sir Mick, and starÂring Mr. Dougray Scott and Ms. Kate Winslett as derÂring-do BletchÂley Park mathÂeÂmatiÂcians and cryptÂanÂaÂlysts employed in a race against time and the Nazis to break the fabled EnigÂma code before all hell breaks loose. It all sounds very draÂmatÂic (and I’ve heard the film is enterÂtainÂing), but things didn’t hapÂpen quite like that. RealÂiÂty is nevÂer so forÂmuÂlaÂic or so good-lookÂing. But the EnigÂma code was broÂken, and the stoÂry of the code machine and its evenÂtuÂal decrypÂtion is fasÂciÂnatÂing on its own terms. As UniÂverÂsiÂty of CamÂbridge “EnigÂma Project OffiÂcer” Dr. James Grime says–in the series of videos above and below–it’s a stoÂry of “how mathÂeÂmatiÂcians can save lives.” Still with me?
Okay, so in the first video above, Dr. Grime gives us a thorÂough tour of the EnigÂma machine (Sir Mick owns one, by the way… but back to the hisÂtoÂry…). DevelÂoped by the GerÂmans, it’s a marÂvelous encrypÂtion method set into a small box that when opened resemÂbles litÂtle more than a fanÂcy WWII-era typeÂwriter. Oh, but it’s clever, you see, because the EnigÂma machine (the one above belongs to sciÂence writer Simon Singh) transÂlates ordiÂnary mesÂsages into code through an ingeÂnious method by which no letÂter in the code ever repeats, makÂing it almost imposÂsiÂble to decode in the ordiÂnary ways. The machine was quite comÂpliÂcatÂed for its time; it works by sendÂing the charÂacÂters typed by the keys through a series of circuits—first through three rotors like those on a comÂbiÂnaÂtion bike lock, but each with 26 places instead of ten.
Now at this point, the machine was nothÂing more than what was availÂable to any bank or busiÂness wishÂing to transÂmit trade secrets. But the GerÂman milÂiÂtary machines had an extra layÂer of encodÂing: at the front of their machines was a “plugÂboard,” someÂthing like a small switchÂboard. This allowed the codÂing comÂing through the rotors to be reseÂquenced for an extra levÂel of scramÂbling. In the GerÂman milÂiÂtary machines, the total numÂber of posÂsiÂble comÂbiÂnaÂtions for mesÂsage encrypÂtions comes to a stagÂgerÂing figÂure in the quadrillions. (The exact numÂber? 158,962,555,217,826,360,000). There’s a litÂtle more to the machine than that, but Dr. Grime can explain it much betÂter than I.
Of course, the EnigÂma Machine had to have a fatal flaw. OthÂerÂwise, no novÂel, no movie, no draÂma (and maybe no vicÂtoÂry?). What was it, you ask? AmazÂingÂly, as you will learn above, the very thing that made the EnigÂma nearÂly imposÂsiÂble to break, its abilÂiÂty to encode mesÂsages withÂout ever repeatÂing a letÂter, also made the code deciÂpherÂable. But first, Alan TurÂing had to step in. SadÂly, TurÂing is missÂing from EnigÂma the film. (More sadÂly, he was disÂgraced by the counÂtry he served, which put him on triÂal for his sexÂuÂalÂiÂty and humilÂiÂatÂed him to the point of suiÂcide). But as Grime shows above, TurÂing is one of the real heroes of the EnigÂma code stoÂry. CryptÂanÂaÂlysts iniÂtialÂly disÂcovÂered that they could deciÂpher ordiÂnary words and phrasÂes (like “Heil Hitler”) in the EnigÂma mesÂsages by matchÂing them up with strings of ranÂdom letÂters that nevÂer repeatÂed.
But this was not enough. In order for the EnigÂma code to work for the GerÂmans, each operator—sender and receiver—had to have exactÂly the same setÂtings on their rotors and plugÂboards. (The mesÂsages were transÂmitÂted over radio via Morse code). Each month had its own setÂtings, printÂed on code sheets in solÂuÂble ink that easÂiÂly disÂsolved in water. If the Allied codeÂbreakÂers deciÂphered the setÂtings, their decrypÂtion would be useÂless weeks latÂer. FurÂtherÂmore, the GerÂman navy had a more comÂpliÂcatÂed method of encodÂing than either the army or air force. The PolÂish had develÂoped a machine called the Bombe, which could deciÂpher army and air force codes, but not navy. What TurÂing did, along with GorÂdon WelchÂman, was develÂop his own verÂsion of the Bombe machine, which allowed him to break any verÂsion of the EnigÂma code in under 20 minÂutes since it bypassed most of the tedious guessÂwork and triÂal and error involved in earÂliÂer by-hand methÂods.
This is all very draÂmatÂic stuff, and we haven’t had one celebriÂty step in to dress it up. While I’m cerÂtain that EnigÂma the film is a treat, I’m grateÂful to Dr. Grime for his engageÂment with the actuÂal codeÂbreakÂing methÂods and real perÂsonÂalÂiÂties involved.
A third video of extra footage and outÂtakes is availÂable here if you’re still hunÂgry for more WWII codeÂbreakÂing secrets.
via SciÂence Dump
Josh Jones is a writer and musiÂcian. He recentÂly comÂpletÂed a disÂserÂtaÂtion on land, litÂerÂaÂture, and labor.