On June 27, 1940, the Germans set up two-way radio communication in their newly occupied French territory, employing their most sophisticated coding machine, Enigma, to transmit information.
The Germans established radio stations in Brest and the port town of Cherbourg. Signals would be transmitted to German bombers so as to direct them to targets in Britain. The Enigma coding machine, invented in 1919 by Hugo Koch, a Dutchman, looked like a typewriter and was originally employed for business purposes.
The German army adapted the machine for wartime use and considered its encoding system unbreakable. They were wrong. The Brits had broken the code as early as the German invasion of Poland and had intercepted virtually every message sent through the system. Britain nicknamed the intercepted messages Ultra.
READ MORE: Notes by Alan Turing’s Team Found in the Walls of Code-Breaking Hut
Unveiling World War II’s Greatest Spy
Who was the greatest spy of World War II? By that, I don’t mean the most colorful the most James Bondlike, the most romantic, or the most skilled trade craftsman. I mean the most effective. I mean the most affected the course of the war.
Some will say it was Richard Sorge—the motorcycle-riding, womanizing, blue-eyed German secret Communist in Japan who concealed his spying by freelancing as a newspaper and magazine correspondent. After Adolf Hitler attacked Russia, Sorge had to learn what Japan would do. Would the empire move north to strike its traditional enemy from behind while in a life-and-death struggle, or would Japan move south, toward oil and the white man’s empire in Asia? And indeed, at the end of September 1941, Sorge reported, “The Soviet Far East can be considered safe from Japanese attack.”
But his achievement was not unalloyed. Russian codebreaking had revealed that Japanese troops were not moving north. Moreover, necessity drove Josef Stalin to pull troops out of the Far East to fight the Germans approaching Moscow. Sorge’s influence is thus at best clouded, so he therefore cannot stand clearly as the greatest spy of World War II.
How about Juan Pujol, code-named “Garbo”? This thirty-two-year-old anti-Fascist Spaniard had promised the Germans that he could provide them information from England, where he would be going for business reasons. Once there, he convinced the British that he could serve them as a double agent. And indeed, under their tutelage he fed the Germans information that was accurate but insignificant, or assumed to be already known to them.
Then, when their trust had solidified, he radioed them the big lie: that the Anglo-American assault on Normandy served merely as a feint for the main invasion, which would come farther north, opposite Dover, in France’s Pas de Calais. The Germans believed him. His report sped to Berlin and back down to the Western Front—where four divisions were held in northern France to await what the Germans thought would be the real assault.
This certainly contributed to the success of the invasion, and may even be said to have driven the final nail into the deception plan. However, it was indeed only one nail in a huge operation. Valuable as Garbo was, he cannot be regarded as the greatest spy of the war. At best, he confirmed a German misconception he did not create it.
A couple of Germans defied the Gestapo and delivered information to Allen Dulles, the Office of Strategic Services spymaster in Switzerland. Hans Bernd Gisevius, a counterintelligence agent operating under cover as a vice consul in Zurich, reported, for example, that the Germans were preparing two types of missiles—later called V-1 and V-2—that enabled the Allies to understand seemingly contradictory intelligence reports.
However, this information was provided after British aerial photographs had found the installations in Peenemünde. Fritz Kolbe, code-named “George Wood,” a staffer under a high Foreign Office official, passed photographs of diplomatic messages to Dulles. They described the V-weapons, the Reich’s transportation problems, the Volkssturm, and the so-called Alpine redoubt. His biographer has called Kolbe “the most important spy of World War II.” A more sober assessment by historian Christoph Mauch says that “When it was realized how valuable the material presented by Wood really was, a good portion of its significance had already been lost.”
On the Axis side, “Cicero” holds pride of place. He was an Albanian swindler, Elyesa Bazna, who had wormed himself into a job as butler for the British ambassador to Turkey. In the fall of 1943, he copied the diplomat’s key to his safe, took secret documents from it, photographed them, and sold the films to the Germans. Turkey, a World War I ally of Germany and an old enemy of Russia, could threaten Allied control of the Mediterranean, but Allied advances precluded any significant action based on this inside information. Cicero’s information, though interesting, did not matter.
No, I believe the greatest spy was one who worked before the war but whose information affected that conflict more than any other secret agent. His name is…but that is getting ahead of my story.
In 1973 I was at Oxford University writing my dissertation on German military intelligence in World War II. My supervisor was Hugh Trevor-Roper, whose job in British intelligence during the war had been to study that very subject.
One day in the spring, I received a note from an acquaintance, J. Rives Childs. A retired U.S. career ambassador who in World War I had broken codes for the American Expeditionary Forces, Childs had lent me his papers from that work when I was writing The Codebreakers. Later we met in New York and in Paris.
Childs was now inviting me to lunch with some English friends near Oxford. During the meal, the conversation turned to a new French book by General Gustave Bertrand, a retired French intelligence officer. He had run a spy early in the 1930s who provided information about the main German cipher machine that led to its solution. This machine, called Enigma, was put into service in the German navy in 1926 and the German army in 1928 it concealed many of the Wehrmacht’s transmitted secrets throughout World War II. Bertrand told the story of the spy in his book Enigma, ou la Plus Grande Enigme de la Guerre 1939-1945.
If this man had indeed provided the information that enabled the Allies to crack Enigma messages and so gain access to key German military information, such as U-boat orders, he would indeed be the greatest spy of World War II. But who was he?
I bought Bertrand’s book. It detailed how in October 1932 an employee of the German Defense Ministry’s Chiffrierstelle, or Cipher Center, “offered his services” to the French. It provided much color about Bertrand’s eighteen meetings with the spy in cities and resorts throughout Europe, and some details about the information he supplied, at first about Enigma, later about other German cryptosystems and the work of the Forschungsamt, Hermann Göring’s wiretapping agency, to which the spy transferred in 1934.
Even with this help, however, the French cryptanalysts could not solve the Enigma cryptograms. Bertrand related how, with his supervisors’ permission, he gave the spy’s information to other countries concerned about German revanchism: Britain, Czechoslovakia, and Poland. Alone among all these countries—and “thanks to the information” from the agent, as the head of the Polish cryptanalysts acknowledged to Bertrand—Poland reconstructed the machine in December 1932 and read messages enciphered in it.
At a meeting in Warsaw in July 1939, the Poles told the British and French how three young Polish cryptanalysts had solved Enigma. Poland gave its friends two copies each of the Enigma. Both used them after the war broke out—France less successfully than Britain. But throughout his story, Bertrand used only the spy’s cover name—the initials H.E., pronounced in French asché. He never provided the real name.
There the matter rested until the summer of 1974, when retired Royal Air Force Group Captain Frederick William Winterbotham obtained permission to disclose that the Allies had been intercepting, solving, and exploiting German Enigma-enciphered messages, thus helping them win World War II. His book The Ultra Secret exploded in headlines in the British press. The story was utterly surprising and extremely significant. No previous writings in English, French, or German had even hinted at it. Churchill had purged his memoirs of any references to intercepts and solutions. The official historians had not been told about Ultra—the interception, solution, and exploitation of coded German messages during World War II.
Winterbotham’s revelations showed how much Allied commanders knew about German plans, supplies, order of battle, and much more—and thus how the Allies had won the war more quickly and more cheaply in men and materiel than they otherwise might have done. Some journalists and historians said that the Ultra revelations would require a total rewriting of the war.
This was hyperbole. At best, knowledge of Ultra helped explain why some things happened it did not change the events. Still, as literary critic George Steiner has said, the breaking and exploitation of the German cryptograms was Britain’s greatest achievement of the twentieth century.
I do not know why Winterbotham, who ran the system of extremely limited distribution of solved intercepts to military commanders, was allowed to reveal this tightly held secret before any of the other tens of thousands of World War II codebreakers. Many of them had been more central to the production and employment of this vital intelligence than he was, and had kept the secret for decades.
I did learn later why Her Majesty’s government had decided to release the story after three decades of silence. At the end of European hostilities in 1945, the Allies gathered up thousands of Enigma machines from the Luftwaffe, the Kriegsmarine, the SS, the land forces of the former Wehrmacht, even the railroad administration. Soon decolonization began, and the newly independent members of the British Commonwealth—India, Pakistan, Nigeria, Ghana, and the others—clamored for cryptosystems for their diplomats and their soldiers. Only one firm in the world, the Swede Boris Hagelin’s Cryptoteknik, then sold cipher machines in any quantity. Some of the new countries bought these machines. Others turned to the former mother country for help. Britain offered them the surplus Enigmas, systems more secure than Hagelin’s.
Now, officials in these countries were not so naive as to think that, if Britain was giving them cipher machines, it could not read them. But they were less concerned about Britain than about their neighbors—Pakistan was worried about India, for example. Those countries, many of them in the Third World, did not have and could not buy the cryptanalytic expertise to break Enigma. Many countries purchased the code machines.
However, the Enigma was electromechanical. It had rotors and pawls and contacts. By the early 1970s, the machines had worn out. Countries replaced them with more advanced cryptosystems, often electronic. At this point, Britain no longer had to keep secret the fact that it could read Enigma-encrypted messages.
Sir Joe Hooper, a former head of Britain’s codebreaking agency, explained all this to me. We were standing in an ornate hall in Britain’s Foreign and Commonwealth Office, the same building in which Foreign Secretary Sir Edward Grey, watching the lamplighters in Whitehall on the eve of World War I, said: “The lamps are going out all over Europe. We shall not see them lit again in our lifetime.” For me, as a historian of cryptology, the moment was almost as historic.
Winterbotham’s book amazed, fascinated— and chagrined—me perhaps more than anybody else. My book The Codebreakers, published in 1967, had nothing about the biggest cryptologic story of all time. I knew that ten thousand people worked at Bletchley Park, the British codebreaking center, but I could not find out what they did, or what effect they had had. I knew no one who might talk, and although while researching that book I had written Winston Churchill and Dwight Eisenhower, asking what effect codebreaking had had on the war, neither had responded.
Later in the summer of 1974, my wife and son were vacationing in Jesolo, near Venice, and I was to join them. I wanted to learn more about the Enigma solution. France was on the way to Italy, and General Bertrand agreed to let me interview him. I met him on July 12 in the Hôtel la Tour de l’Esquillon, atop a cliff on the edge of the Mediterranean in Théoule-sur-Mer, near Nice. Among other details, such as what French cryptanalysis had achieved in the first months of the war, I wanted to learn the identity of the spy.
But although Bertrand was helpful on other matters, saying that the man had been caught and shot shortly before the war and that his brother was a famous panzer general, he declined to name him. I excused myself and placed a telephone call to Walther Seifert in Osnabrück, West Germany. I had interviewed him twice for my book Hitler’s Spies. Seifert, short, pug-nosed, cigar-smoking, had been chief of evaluation of the Forschungsamt, the agency in which Bertrand’s spy had later worked. The Forschungsamt had left few documentary traces in Nazi Germany, and I needed to learn about it. Seifert had been extremely interested in his work and good at it. He and I got along very well they were among my most productive interviews.
When he answered my telephone call from Théoule, I asked him whether any employees of the Defense Ministry’s Chiffrierstelle and then the Forschungsamt had ever been arrested for betraying secret information. He first gave the name of one Plaas, shot in 1944, but then reconsidered and observed that Plaas had never served in the Chiffrierstelle.
Then he said that Hans-Thilo Schmidt, a Forschungsamt employee under him, had worked in the Chiffrierstelle. He said that around 1942 he was caught and shot for giving information to the enemy. He had done it for money and women. Seifert characterized him as a Waschlappen—a dishrag, a weakling. And he said that his brother was a panzer general! (This was Colonel-General Rudolf Schmidt, who commanded the XXXIX Panzer Corps in Russia and then replaced General Heinz Guderian, Germany’s famed apostle of tank warfare, as commander of the Second Panzer Army. He was a favorite of Hitler’s.)
I thanked Seifert, hung up, returned to Bertrand, and presented this information to him. I hoped that it would shock him into a confirmation. It didn’t. He declined to confirm or deny the identification, saying that the man’s wife and children were still alive and should not be exposed to this further mortification.
A few weeks later, on August 7, Seifert typed out Schmidt’s name in a letter and added that he was a member of the Nazi Party. I checked the party records in the Berlin Document Center, an archive under American control, and found Hans-Thilo Schmidt’s membership card. Born May 13, 1888, he had joined the party on December 1, 1931, as member number 738,736.
Then, obtaining the service record of his brother, I learned the names of his parents—his father was a “Professor Doktor,” a prestigious title in Germany, and his mother was a baroness. That record also showed that Rudolf, a signals officer in World War I, had as a captain served from 1926 to 1928 as head of the Chiffrierstelle, the unit that both broke foreign codes and devised and authorized cryptosystems for the German army. In depression- and inflation-ridden Germany, he had given his younger brother a job in that unit.
I now knew the identity of the greatest spy of World War II. But I had no occasion to use it. Then, when Winterbotham’s book was published in America later in 1974, I reviewed it for The New York Times. I praised it, saying that the British—and later American—codebreaking was “the greatest secret of World War II after the atom bomb.” I told the story of the spy and gave his name. It was the first time he had been publicly identified, and I believe all subsequent references may be traced to this statement.
I sent a copy of the review to Bertrand, thinking it would interest him. Back came a furious note saying, “I will not hide from you that I am very angry at the indiscretion that you have committed in unveiling the name of the employee of the Cipher Center, which I had always carefully concealed, since his brother and his wife (as well as his children) are still living.” Bertrand thus inadvertently confirmed that the identification was correct.
Actually, the brother had died in 1957 I don’t know about the widow, but a daughter still lived. Further confirmation came, I discovered later, from two German sources. A 1967 article by the German intelligence historian Gert Buchheit stated that “Thilo Schmidt” had delivered some details about Enigma to the French he expanded this in his 1975 book Spionage in Zwei Weltkriegen. And the diaries of Nazi propaganda minister Josef Goebbels, published in partial English translation in 1948, mention in the entry for May 10, 1943, the arrest for treason of the brother of Colonel-General Schmidt. (Bertrand had been wrong when he said that Schmidt had been caught before the war.) The traitor was not named, and no one seems to have paid attention to the news.
Finally, for his book on Allied codebreaking, Enigma (2001), British author Hugh Sebag-Montefiore amazingly tracked down the daughter of a man whose family name was Schmidt. She told of a father who seduced his housemaids, somewhat substantiating the statement that he had betrayed his country for money and women. He thus filled out the human picture of the man who is, in my view, not only the greatest spy of World War II but also possibly the most important spy of all time.
Schmidt’s contribution, however, tells only half the story of the Enigma solution. How did the Poles achieve it when the British and French, who also had that information, had failed? The story again revolves around Oxford.
Around the turn of 1973-1974, the head of Oxford’s faculty of modern history asked me to help another doctoral student with his dissertation on intelligence during the Napoleonic wars. The student, Alfred Piechowiak, met me in February at my house. I offered what little help I could, and in conversation then or later he said that his father, a retired lieutenant colonel in the Polish army, had been in intelligence in World War II and had some papers dealing with codebreaking. Naturally, I asked if I could see them. He readily assented, and on July 26 we went to their house in South Hinksey, a suburb of Oxford.
They gave me a thirty-two-page purple carbon copy of an anonymous typescript titled “Enigma, 1930–1940.” It was in Polish and heavily mathematical. I could understand none of it, but Piechowiak orally translated part of it for me. With his permission, I photocopied it.
By then Tadeusz Lisicki, a retired colonel living in England, had contacted me, probably because the Enigma story was breaking and he knew I had written about cryptology. He told me that Henryk Zygalski, one of the three original solvers of Enigma, was living in England. On July 29, Lisicki and I interviewed Zygalski at his home in Liss, some 30 miles southwest of London. I was thrilled to meet a man who had contributed to a cryptanalysis that had had such far-reaching effects. He provided me not with technical details, which in any event would be foggy sixty years after the event, but with color: where the cryptanalysts worked, in particular.
He also wrote out for me the name and address in Warsaw of his former colleague, Marian Rejewski, who turned out to be the chief solver of the Enigma and the author of the anonymous typescript. Besides Zygalski, Rejewski was the only survivor of the three original cryptanalysts.
Lisicki identified the corrections on the typescript as in Rejewski’s handwriting. Eventually, I believe through Lisicki, it reached a wider audience. This contributed to explaining why Poland had been the only nation to solve the Enigma though two other countries had the information from Schmidt.
One reason was that Poland had greater need: Germany thundered out threats against it more than against the others, hating that much of Poland’s land had once been held by Germany, furious that the Polish corridor divided East from West Prussia, resenting the independence of what had once been the German port of Danzig, demanding the “rectification” of its borders.
The other reason was that Poland had greater cryptanalytic ability. With more foresight than the other countries, it was the only one of the three to employ mathematicians as cryptanalysts—and only mathematics could make it possible to reconstruct the Enigma rotor’s internal wirings. Subsequently, I corresponded in German—our best mutual language—with Rejewski, filling in some details of the work.
His memorandum was later translated and published. It described how the cryptanalysis had advanced pretty well—but then had stalled. Then Rejewski received Schmidt’s information. It converted some of the unknown terms in the cryptanalytic equations to known terms, enabling Rejewski to resolve them. In a commentary, he generously acknowledged, “the intelligence material furnished to us should be regarded as having been decisive to the solution of the machine.” Thus he independently implied what I had already concluded: that Hans-Thilo Schmidt was the most important spy of World War II.
This story cannot be completed without mentioning two remarkable coincidences. One is that author Sebag-Montefiore’s great-great-grandfather, Sir Herbert Leon, had once owned Bletchley Park, the home of British World War II codebreaking.
The other is the most exquisite irony in intelligence history. As head of the Chiffrierstelle, Rudolf Schmidt approved for use the Enigma cipher machine that his brother later betrayed!
Originally published in the Autumn 2007 issue of Military History Quarterly. To subscribe, click here.
In 2001, the release of the feature film Enigma sparked great interest in the tweedy world of the boffins who broke Nazi Germany's secret wartime communications codes. But not all who watched Dougray Scott in the film's lead role realised that the title referred to a machine like a typewriter, which encrypted secret messages.
Fewer people still knew that this piece of spook hardware was invented by a German (based on an idea by a Dutchman), that information about it was leaked to the French, and that it was first reconstructed by a Pole, before it was offered to Britain's codebreakers as a way of deciphering German signals traffic during World War Two. As a result of the information gained through this device, it has been claimed, hostilities between Germany and the Allied forces were curtailed by two years.
The importance of signals intelligence became evident during World War One .
The importance of signals intelligence became evident during World War One, as staff in the British Admiralty's Room 40, under Captain Reginald 'Blinker' Hall, worked at intercepting German communications.
Among these, famously, was the Zimmermann telegram - a message from the German foreign minister to his ambassador in Mexico City informing him of plans to invade the United States. On being notified of these plans, officials in Washington were understandably perturbed, and hastened to effect the entry of the US into the war.
The 'Universal Enigma' simulation
While any serious codebreaker wants to be geared up for what's out there, creating and maintaining separate simulations for all the different models would be pretty dull. This is where the "Universal Enigma" comes in. It contains virtually every model with 26-position rotors that has sufficiently documented specifications available at this time. Moreover, it is also equipped with a Stecker-Uhr and, as of version 2.5, with the rewirable reflector UKW-D.
There was of course no such Enigma for real, historically! However, bundling everything into a single, uniform entity has the benefit of making all models available at any time and in a compact way, which makes it possible to easily switch between them and compare their features and functionality. (Since the release of Universal Enigma, this approach has been widely embraced for Enigma simulation.) Each selected model preset will behave like a separate simulation, including possible limitations for wheel selection, reflector type and so on. But in addition to this, a "Custom" mode allows for individual setting of functionality features (including wheel drive mechanism) and free combination of all included components, thereby for the creation of entirely new Enigma models!
Germans employ Enigma coding machine for the first time - HISTORY
Using AI processes across 2,000 DigitalOcean servers, engineers at Enigma Pattern accomplished in 13 minutes and at a cost of just $7 the feat for which Alan Turing and Gordon Welchman, working on a basis provided by Polish cryptographers, built the Bombe and Colossus machines at Bletchley Park during World War II.
June 23rd was the anniversary of Alan Turing's birth - 2018 was the 106th - and this news story surfaced as a result. Meanwhile we ran news that the replica Bombe had moved to a new home in its own dedicated gallery in TNMOC, the UK's National Museum of Computing, in the grounds of Bletchley Park, to neighbour the rebuilt Colossus. When you consider that codebreaking at Bletchley Park used 210 Bombes together with up to 10 Colossus machines were used for the daily codebreaking task, you can see that Enigma Pattern used AI to good effect and that the cost of the computing power required for hugely demanding number crunching has indeed reduced dramatically.
Enigma Pattern is startup that uses AI and Machine Learning to help companies that collect big data put it to use. Since AI is still such a new discipline, and the company is seeking new uses for AI, its employees spend 20 percent of their time on side projects of their choice that encourage out-of-the-box uses of AI.
Lukasz Kuncewicz, a co-founder of Enigma Pattern and its Head of Data Science, who was keen to retrace Turing's footsteps, decided to apply modern artificial intelligence techniques to break the “unbreakable” Enigma machine used by the Nazis to encrypt messages from its high command to control its operation. He also chose this project to refer to the common history of Brits and Poles using human intelligence to overcome the biggest obstacles of the Second World War. given that the company's third co-founder, Mike Gibbons, is British.
According to Enigma Pattern co-founder, Rafal Janczyk, the project started from the question:
‘What would Alan Turing be able to do nowadays if he had the current computing power and all the development around AI.’”
Kuncewicz decided to recreate the Nazi navy’s version of the machine, which was the most sophisticated and provided over 15 billion password variants. His team started by recreating the machine, rotors, and plugs in Python. Initially, they tried to teach their AI to decode the Enigma code itself, but it didn’t work. Neither did Lambda functions from Amazon, due to the amount of computations required and AWS limitations regarding execution time. The breakthrough came when Digital Ocean agreed to provide 1,000 ML 1-Click Droplets.
As outlined on GitHub, where you can find the code for the project, as well as the Enigma simulator they needed to train an AI to classify the German language. This was done using Keras on TensorFlow with Grimm's Fairy Tales as a source of simple vocabulary. The rearchers used a two-layered recurrent neural network (first layer: 50 LSTM neurons, second layer: simple sigmoid neuron as the output). They trained the network on 10 letter German words against 10 letter random strings commenting:
Since they are VERY different, even this simple approach proved successful.
In a blog post reporting the project in September 2017, Kuncewicz wrote:
I still remember when we ran the whole project for the first time. After a few minutes, two things became apparent. The good news was, the project was working like a charm the Enigma simulator was testing the combinations, and the artificial intelligence was classifying the decrypted messages. The bad news was, it would have taken 2 weeks to find the password.
The solution was to spread the computational load across multiple virtual servers - and using Digital Oceans 1,000 droplets reduced the time for to 19 minutes with 13 millions combinations tested per second. Later in 2017, and at the Imperial War Museum in London, the number of droplets was doubled to 2,000, which ran through 41 million combinations per second, and the time taken to break the code was reduced to 13 minutes. The remarkable fact reported by Digital Ocean was that the cost incurred was just $7.
It is today's computational power at affordable prices that means we can expect artificial intelligence and machine learning to solve problems that seemed intractable even in the recent past.
To give the last word to Enigma Pattern's Janczyk who sees his job as that of finding new uses for AI:
“With AI and ML, there is an unlimited amount of possibility, which is what makes it so exciting."
WWII Enigma Machine Found at Flea Market Sells for $51,000
Every flea-market aficionado dreams of the day they find a true treasure. Not so long ago, that day came for a collector at a flea market in Bucharest, Romania, who found an intact German Enigma machine, the super-secret coding gadget used by Third Reich during World War II. After paying roughly $114 for the machine, Reuters reports that the cryptography machine sold at auction for roughly $51, 620 to an anonymous online bidder earlier this week.
The seller was no ordinary thrift-store shopper. “It belonged to a mathematician who has spent most of his life decrypting codes,” Vlad Georgescu, relationship manager at Artmark, the auction house that sold the machine, tells Judith Vonberg at CNN. While the flea-market vendor thought the machine was a unique typewriter, the mathematician knew exactly what he was buying, and felt “compelled to purchase it.”
He didn’t sell the Enigma right away. Instead, Vonberg reports, he tinkered with the machine, cleaning it, fixing it and figuring out how it works. George Dvorsky at Gizmodo reports that the machine was produced in Berlin by manufacturers Heimsoeth & Rinke in 1941 and that the machine is functional and still in the original wooden box, both rarities.
The Enigma machine is the most storied cryptography device in modern history. Originally developed in the early 1920s, the technology was adopted by the German armed services in the late '20s and early '30s. The machine essentially allowed its operator to scramble messages by setting rotors in a certain position. If the operator on the other end knew the rotor setting, they could decipher the message. If not, the Enigma communications were almost impossible to crack.
But Allied forces did crack the machines. Working with documents obtained by French intelligence, the Polish Cipher Bureau was able to reconstruct a version of Enigma machine, allowing them to decrypt German communiqués by 1933. The Poles passed their work on to the British in 1939 before they were invaded. Once war began, the Enigma machines and codes became more complicated. That’s when mathematician Alan Turing and the codebreakers at Bletchley Park took up the torch, creating systems that could keep up with and break the ever changing Enigma codes. According to Reuters, the Germans were so sure their code could never be broken that they relied on it for all types of communication. It’s believed by some that cracking the Enigma code shortened World War II by two years. Turing's contributions to the war are featured in the Oscar-nominated movie The Imitation Game.
Since the end of the war, the various iterations of the Enigma machines have become collectors items. Dvorsky reports about 20,000 of the machines were produced before and during WWII, but only about 50 are known to remain in museums with an unknown number held by private collectors. The flea-market machine is the more common three rotor Enigma I machine. According to Dvorsky, a rarer Enigma M4, with four rotors, sold for $365,000 in 2015. And just in June Christie’s in New York sold a four-rotor Enigma for a record $547,500.
About Jason Daley
Jason Daley is a Madison, Wisconsin-based writer specializing in natural history, science, travel, and the environment. His work has appeared in Discover, Popular Science, Outside, Men’s Journal, and other magazines.
The World War II German Enigma encoding machine is something of an icon in engineering circles not just for its mechanical ingenuity but for the work of the wartime staff at Bletchley Park in decoding its messages. Without it we would not have had Colossus, the first programmable digital electronic computer, and subsequent technological developments might have taken a slower pace towards what we take for granted today.
Sadly for the Enigma enthusiast though, real machines are now few and far between. Our grandparents’ generation saw to that through the chaos and bombing of the fight across Europe. If you want to handle one you will have to either have an outrageous amount of money, work for a museum, or maybe for the GCHQ archivist.
This has not stopped our community building Enigma replicas, and the latest one to come to our attention here at Hackaday shows some promise. [lpaseen]’s meinEnigma is an electronic Enigma driven by an Arduino Nano, with rotary encoders to represent the Enigma rotors and multi-segment alphanumeric displays standing in for the lighted letters in the original. It supports all the different variations of rotors from the original in software, has a physical plugboard, and a serial port over USB through which all machine functions can be controlled. The machine as it stands is a fully working prototype, the plan is that a final machine will resemble the original as closely as possible.
We’ve featured a few Enigma machines on Hackaday over the years. One was built into a wristwatch, another into a hacked child’s toy, but the closest in aim to [lpaseen]’s offering is this rather attractive replica also driven by an Arduino. It is also worth mentioning that should your travels ever take you to Buckinghamshire you can visit the Bletchley Park Museum and neighboring National Museum of Computing, to get the Enigma and Colossus story from the source.
"Decoding Nazi Secrets"
During the following program, look for NOVA's Web markers which lead you to more information at our Web site.
NARRATOR: In spring 1946, an order came through to destroy all the records of what had been the Allies' most secret operation of World War II: the codebreaking unit at Bletchley Park.
UNIDENTIFIED WOMAN: Everything was destroyed, there wasn't a scrap left.
NARRATOR: By mid 1940, the German Army had conquered all of western Europe. Hitler was tightening the noose around Britain. In the Atlantic, German U-boats were decimating Allied convoys, threatening to cut off Britain's only lifeline. But Churchill had a secret weapon, the strangest military establishment in the world. Crossword fanatics, chess champions, mathematicians, students and professors, Americans and British, all came here with one common aim: to unlock the secrets of the Enigma, a machine that concealed Germany's war plans in seemingly unbreakable code. If Enigma could be penetrated, everything Hitler plotted would be known in advance. At Bletchley Park there unfolded one of the most astonishing exploits of the Second World War. Many here had never seen a code before, yet it was their job to find a way to crack Enigma. In the process, they devised ingenious codebreaking machines that were forerunners of the modern computer. But everything they did remained classified for 30 years. Tonight NOVA reveals the secrets of the men and women who helped turned the tide of victory and shape the future.
Major funding for NOVA is provided by the Park Foundation, dedicated to education and quality television.
C|Net, bringing the digital age into focus. C|Net.com, the source for computers and technology.
This program is funded in part by Northwestern Mutual Life, which has been protecting families and businesses for generations. Have you heard from the quiet company? Northwestern Mutual Life.
And by the Corporation for Public Broadcasting and by contributions to your PBS station from viewers like you. Thank you.
NARRATOR: In 1939, Germany introduces a devastating new kind of warfare, blitzkrieg. Lightning attacks by tanks and planes bring Europe to its knees. Blitzkrieg depends on surprise, demanding speedy communication. So radio is crucial to the attack plans. Every day the skies are full of German radio signals. The German high command has trained thousands of wireless operators in preparation for the conquest of Europe. Their job is to be able to interpret Morse code in any conditions. But there is still the problem of how to keep the messages secret. So the German military has adopted a seemingly invincible code-making machine. The Enigma turns a message into unintelligible gibberish, letter by letter. When the message is sent in Morse code, all an enemy would see is a meaningless string of letters. But when the German operator at the receiving end types the coded letters back into his Enigma machine, the real message appears. In this way vital war plans remain totally secret. The high command never wavers from its belief in the security of Enigma. They are so confident that they deploy the Enigma throughout the German war machine. They never imagine what was about to happen at Bletchley Park.
NARRATOR: This is the machine the German high command believed would protect their secrets. This is the Enigma.
TONY SALE: Its complexity's enormous. I mean, if I sent just one message on an Enigma machine today it would still take a super Cray computer, the fastest in the world, a year to go through searching for that one message without supporting evidence as to what that message might have been.
NARRATOR: Long before the war began, the airwaves were full of coded messages as Hitler prepared for battle. Cracking the German ciphers became the priority of a special British Intelligence unit. In 1938, the unit, known as the Government Code and Cipher School, or GC&CS, moved into Bletchley Park, an ornate mansion 50 miles north of London. From this rooftop room, wireless operators contacted listening stations all over Britain that were intercepting German messages. Bletchley Park's code name was Station X. The challenge of breaking the Enigma demanded a special kind of talent. GC&CS set about recruiting.
ANDREW HODGES: The people who a few years earlier were regarded as too young and not knowing anything of importance, of not being real people, not having, not being significant grown-up people, suddenly they were the people who held the keys to the Reich.
ARTHUR J. LEVENSON: Codebreaking was a somewhat esoteric profession. But it wasn't clear exactly who would make a good codebreaker. People who were recruited were asked whether they did crossword puzzles. And if they said they did and enjoyed doing them, and did them well, that was generally enough to get you in. We discovered people of a whole variety of backgrounds did very well. Anthropologists, Egyptologists, paleontologists, and even an occasional lawyer turned out to have the knack.
NARRATOR: Bletchley Park evolved into a unique operation in which military discipline, uniforms, and rank no longer mattered. The sole imperative was to break the Enigma, and break it as quickly as possible.
DONALD MICHIE: At that age you can just take fire and blaze away, half out of your mind with enthusiasm and dedication, you're not married, you don't have to worry about the kids and the rent and so forth. And during that sort of short period of your life you can live like a madman and, you know, take almost no sleep and - determined to do it.
NARRATOR: But youth and determination weren't enough. Mathematicians were enlisted to take on the daunting complexity of the Enigma. Only a completely new approach to codebreaking could help to penetrate its secrets. But if the work at Bletchley Park were to succeed, absolute secrecy was essential. Some of the recruits had no idea of the purpose of their work.
GWEN WATKINS: Most of us who were among the - what shall I say, the hoi polloi, the lower grades, never knew what went on at Bletchley Park. The only time I realized what we were actually doing was when I was shown a code book which had just been captured and rushed to Bletchley from a captured plane, and of course we had no plastic envelopes or anything then, the poor thing was just given to me as it was and I was horrified to see a huge bloodstain on it, the blood 'round the edges was drying, but the blood in the middle was still wet and I realized then that somewhere was this German - this German air crew bleeding, still bleeding while I was decoding - I was writing out in modern German their new code book, and that did bring the war very close.
NARRATOR: The Germans were supremely confident in the Enigma. Its basic principle was simple, but it could scramble messages in millions of different ways. Pressing one typewriter key would light up a totally different letter. An electrical current was sent from the keys to the letters through a series of rotors. Each time a key was pressed a rotor would turn, altering the wiring and so changing the letter that was produced.
TONY SALE: The total number of ways in which the Enigma machine can be configured for any particular message is 150 million million million. So it was an enormous complexity which was why the Germans thought it was completely safe.
NARRATOR: The Enigma was first developed as a commercial encryption device in the 1920s and patented in London. German banks and railways were among its first customers, but the German military was quick to see its potential. Each day German operators in the field received a new set of instructions from base on how to set up the Enigma. They had to make three adjustments so that both the sender's and receiver's machines would match. First, which rotors to put into the machine and in what order.
TONY SALE: The rotors contained one of the central secrets of the Enigma machine, which was the cross wiring inside the wheels. The whole of this maze of wiring inside changed every time a letter was entered and that's what gave the Enigma machine its vast complexity.
NARRATOR: The second step was to change the wiring of each rotor by adjusting the ring of letters around the rim - 26 combinations on each wheel. The third step was the plugboard. Using his secret instructions for the day, the operator could wire up each typewriter key to a totally different letter.
TONY SALE: This was what the Germans thought was the killer cryptographically. This plugboard enabled you to transpose letters completely, a pair of letters. Now because there are 26 sockets on the front of the Enigma machine, you can plug these pairs of letters together in an absolutely astronomical number of combinations, about one-and-a-half million million combinations that you can use on the front.
NARRATOR: Once the machine was set up, the message was encoded letter by letter. These letters were then sent by Morse code to the receiver at the other end. The Germans were never shaken in their belief in Enigma's invincibility. At first, all the codebreakers had were meaningless groups of coded letters and endless patience. And in the first months of the war the new recruits were getting nowhere.
TONY SALE: At the beginning of the war there was a great difficulty because although we had intercepts which we knew were enciphered using the Enigma machine, we didn't know enough detail about the machine to be able to even begin to find any method of breaking it. Unless you've got the exact key you just cannot get anywhere with it at all and this is a major difference from any code systems prior to that, that the Enigma machine, there's no sense of nearness, you're not nearly at a solution. You've either got the solution or you haven't got the solution.
NARRATOR: The search for a solution began long before the war. Starting in 1931 and continuing for seven years, a hard-up German army clerk secretly obtained more than 300 documents, including the instructions and settings for the Enigma machines. He sold them to the French Secret Service, but their cryptographers showed little interest. Next the stolen documents were offered to the British Secret Service. At this stage, GC&CS was skeptical that Enigma could be broken and politely declined the offer. Finally the documents went to the Poles. With Germany breathing down their necks, their response was very different. A deal was struck. With the stolen documents in hand, three brilliant young Polish mathematicians, Zygalski, Rozycki and Rejewski, set to work on the Enigma. The Poles soon realized that they had to figure out how the Germans had wired the Enigma's keyboard to the first rotor. Since any typewriter key could be wired to any letter on the rotor, the number of possible wiring orders was astronomical. But if the Poles could work this out, it would be a vital first step in breaking the Enigma.
TONY SALE: Rejewski had a flash of inspiration and he thought, what about if they've been stupid enough to just use ABCD as the order round the rotor, and they had, all the multitude of millions and millions of ways in which they could have scrambled the connection from the keyboard to the entry point, and they'd just chosen ABCD. And Marian Rejewski in desperation tried that, it worked, and suddenly he'd got the internal connections of the whole of the German forces machine.
NARRATOR: But in 1939, on the eve of the invasion of Poland, the Germans added an extra choice of rotors to the Enigma and the Poles could no longer read any of the messages. In desperation, they invited British and French officials to a secret meeting in a forest near Warsaw. They revealed how they had previously broken the Enigma. The British were astonished.
TONY SALE: And Dilly Knox, he was one of the members of the team that went there, and the first thing he asked Rejewski was, what is this mapping from the keyboard to the entry rotor, and Rejewski said, ABCD. And Dilly Knox went, oh God, we never thought of that, it's too obvious, why didn't we think of that?
NARRATOR: Within weeks of that meeting, Poland was invaded and war broke out. The Polish cryptographers had given Bletchley Park their own replica of the Enigma machine, but the extra rotors the Germans had added meant that the codebreakers were still in the dark. As the flow of German messages increased, at last they began to see a way of achieving the impossible. The starting point was the messages themselves. The British had set up a worldwide network of radio listening posts operated by the military, the post office, and even the London police. They were known as Y Stations.
JOAN NICHOLLS: Wherever the Germans were, we were listening. When there was a lot of excitement, the wires would be absolutely humming with Morse, they'd be transmitting all over the place. We'd really have cramp in our fingers sometimes, trying to write it down non-stop.
NARRATOR: Round the clock and around the world, thousands of operators were writing down meaningless groups of coded letters, the raw material for Bletchley Park. Their approach to cracking the Enigma began with another Polish breakthrough. One of the special procedures the Germans followed in setting up their machines was known as a double indicator. It was to be the Enigma's Achilles' heel. The instruction sheets for each day told the German operator how to set up his Enigma. They specified the order of the rotors and the position of the ring of letters around each rotor. The sheets then provided instructions for wiring up the plugboard. All Enigmas on a network had to be set up identically for the system to work. But there was one extra level of security. If the enemy captured the instruction sheets, they would be able read all the messages. To prevent this, each message had its own secret rotor setting, chosen by the operator. First the operator had to pick three random letters. He sent these in plain text to the operator at the receiving end, allowing that other person to line up his machine identically.
TONY SALE: But now the operator had to be able to tell the operator at the receiving end what the actual message settings from which he was going to start enciphering the message, and that had to be conveyed to the operator the other end but not revealed to any interceptor, and the way that they chose to do this was to use the Enigma machine itself to conceal this message setting.
NARRATOR: So the operator encoded a second group of three letters as the secret message setting itself.
TONY SALE: And supposing he thought of SWJ, and when he keys in SWJ the lamps light up ITV. Because the Germans felt that radio transmissions might be unreliable they went a step further and they actually asked the operator at the sending end to key in the message setting twice. So the procedure was to key in SWJ SWJ and to note down all six lamps that lit and that was a crucial mistake because the repetition of the message setting gives a cryptographer a toe-hold into finding out what it actually is, repetitions are always bad news in cryptography.
NARRATOR: By encoding the same letters twice, the Germans gave the codebreakers their first clue about the setting of the Enigma rotors. Soon there was a second clue. The Poles had noticed a strange quirk in the way the rotors worked. In about one out of eight intercepts, the Enigma was turning one of the letters in the message setting into the same coded letter twice. The mistake of sending the message setting twice was revealing a flaw in the machine itself. Although it was designed to produce random coded letters, there were certain situations in which the Enigma was much less random than the Germans believed.
DONALD MICHIE: There is no such thing as a random, a truly random sequence that can be generated by a purely deterministic machine. That just cannot be. It's part of the definition of randomness that it cannot be explained or predicted in any way whatsoever.
The whole game of cipher design is to design machines which are flawed, they have to be, but in which the flaws are as small, inconspicuous as possible.
NARRATOR: It was just such a flaw that broke the Enigma. Bletchley Park called the repeated letters "females." Only a few configurations of the machine could produce these females. If the codebreakers now worked their way through them, they would find that day's settings. The codebreakers produced huge cards, known as Jeffries sheets, with holes punched through in an alphabetical grid representing the wheel positions that could produce females. By lining these sheets over each other, the codebreakers could hunt through the wheel positions to find out how the Enigma had been set up for that day.
PAM BREWSTER: They were, John Jeffries, they were really his rather special baby. And they were on sort of cartridge weight paper. Not very thick card, they got very dog-eared. And as far as I remember there were two alphabets that way and that way. It was like solving a very difficult crossword puzzle. You could actually see it happening. And the triumph when you found it worked, that was fascinating.
LEVER: Marvelous. Absolutely marvelous. There's nothing like seeing a code broken. That is really absolutely the tops.
LESLIE YOXALL: The one thing that was very interesting was that people were very reluctant to go home at the end of the shift. There was a certain amount of "Move over!" You know "Let me sit down and get on with it." People wanted to hang in there.
ALAN ROGERS: On one occasion I was on the evening shift but when midnight came I was stuck in a message that was, had gripped me so hard I worked right through 'til breakfast time. From four o'clock in the afternoon to breakfast the next day. Simply because this had to get done.
NARRATOR: In the spring of 1941, the naval war was building up in the Mediterranean. Hitler had joined forces with the Italian Fascist Mussolini. Both dictators were dreaming of global empires. The Allies knew that the Germans had given Enigma machines to the Italians. One of the codebreakers trying to break in to the Italian messages was 19-year-old Mavis Lever.
MAVIS LEVER: Sometimes you'd have to spend the whole night assuming every position that there could be on the three different wheels, and there we called them Red, Blue and Green, the wheels, I think they did too. So that you would have to work at it very, very hard and it was that I think that made one pink-eyed and after you'd done it for a few hours you wondered whether you'd ever see anything when it was before your eyes because you were so snarled up in it all.
NARRATOR: Mavis and the other codebreakers didn't know it, but they were about to make their first major impact on the war.
MAVIS LEVER: The one that came up was real good stuff, drama, "Today's the day minus three," just that and nothing else. And so of course we knew that something was going to happen, the Italians were going to do something, the Italian Navy, in three days' time. Why they had to say that I can't imagine, it seems rather daft but still they did.
NARRATOR: The British fleet was based in the Egyptian port of Alexandria under the command of Admiral Andrew Cunningham. Bletchley Park intercepted a message that would lead the Admiral to hatch a clever plan.
MAVIS LEVER: Well then a very, very large message came in which was the battle orders, how many cruisers there were and how many submarines were to be there and where they were to be at such and such a time, absolutely incredible that they should really spell it all out.
NARRATOR: Mavis had decoded just the message that Cunningham needed to outwit the Italians.
MAVIS LEVER: It was 11 o'clock at night and it was pouring with rain when I rushed, ran, absolutely tore down to take it to the Italian - to intelligence to get it across to Cunningham.
NARRATOR: Within hours the decoded message was on its way to Cunningham in Egypt. The Italian fleet was gathering off Cape Matapan on the Greek coast. Their plan was to attack a British convoy at midnight. Alexandria was a nest of spies. The problem for Cunningham was how to act on the message without giving his plans away. If he led the fleet out to sea the Italians would know immediately. Cunningham embarked on an elaborate ruse to fool the spies. He wanted his enemies to believe that all was quiet.
MAVIS LEVER: He did a real Drake on them, well more than Drake, because he played golf and pretended he was, you know, just going to have a, you know, a weekend off.
SIR ROBERT ATKINSON: Admiral Cunningham was a crafty fellow, and by subterfuge he was able to lead the enemy to think he was socially engaged doing something else, and I've no doubt when he went ashore at Alexandria to play golf, that information was in Italy within about five minutes.
NARRATOR: But at night Cunningham slipped back on board and led the British fleet out to sea, to the precise spot where the Italian ships were gathered. The ruse worked. Cunningham caught the Italians completely off guard. That night the Italians lost nearly 3000 men, the cream of their navy. It was the first major coup for Bletchley Park.
NEWSREEL: The Navy does it again. Here is the British Mediterranean fleet preparing for what proved to be the greatest naval engagement so far fought in this war. The Battle of Matapan is one more proof that Britain is the unchallenged ruler of the Mediterranean waves.
NARRATOR: The Navy were the heroes of the Battle of Matapan. Bletchley Park was of course never mentioned, but the codebreakers had their own reward.
MAVIS LEVER: Then Cunningham himself came, it was the first thing he wanted to do when he came was to see the actual message that had been broken, and he was very nice and we had a drink, and we were in this little cottage and the walls had just been whitewashed, now this will show you how sort of silly and young and giggly we were, but we thought it would be jolly nice if we could get, talk to Admiral Cunningham and get him to lean against the wet whitewash and go away with a white stern. So that's what we did so, you know, it's rather terrible, isn't it, that on the one hand everything's so - seems to be so very organized, and these silly young things are wanting to snare the Admiral.
NARRATOR: But their joy was to be short-lived.
TONY SALE: And then disaster struck. The Germans issued a decree, no more double enciphering of the message setting, just single enciphering. Catastrophe, suddenly the Jeffries sheets didn't work and so suddenly darkness fell.
NARRATOR: Gloom descended not only on Bletchley Park but on all British cities. For months, relentless bombing had become part of everyday life. The Blitz was a war of blood and nerves.
SARAH BARING: Well, there was one very good remark is, the only good German is a dead one. We felt very, very strongly. Well, they'd bombed us, they'd - every day, every night - with Heinkels and Dorniers. They'd killed a lot of people in London and in the cities, you couldn't have any pity for Germans under those circumstances.
WINSTON CHURCHILL [voice over]: What a triumph the life of these battered cities is over the worst that fire and bomb can do.
NARRATOR: During the grim months of the Blitz, Bletchley Park was one of Churchill's few glimmers of hope. Access to the enemy's innermost secrets could make the difference between victory and defeat. The codebreakers were working around the clock to break the Enigma. They had divided into huts to attack different parts of the German war machine. Hut 6 was now concentrating on the Air Force Enigma.
NARRATOR: The Luftwaffe's code, nicknamed RED, soon proved vulnerable. Ironically, the German Air Force thought itself so technologically advanced that it was careless about security. For months, Bletchley Park had tried to crack the secret messages from German airfields to their headquarters in Berlin. They had to find a way - and quickly. Hitler was preparing to invade Britain.
JOHN HERIVEL: It was like looking for something in a dark room, one didn't really know what one was looking for, and I thought and I thought. But I had great confidence, I felt, I am going to find some way to break back into the RED.
NARRATOR: John Herivel turned his thoughts to the Enigma operator. There were set procedures to be carried out to prepare each Enigma for that day's messages. The settings of the rotors and the Ringstellung - the alphabet ring around the rotors - were crucial. If the secret instructions were not followed exactly, the security of the whole system would be at risk. But John Herivel discovered that the operators were making a fatal mistake. It became known as the Herivel tip.
TONY SALE: What the operator should do, of course, is when they've done a setting on a cipher machine, you should always spin the wheels so that it randomizes the position. But the whole of the Herivel tip depended on the German operator either being under pressure or lazy and not doing that.
NARRATOR: The operator had to send the three random letters by Morse to the person at the other end so that both machines would be set to the same start position. But Herivel realized that if the operator failed to spin his rotors as he should, then the three letters he was sending over the airwaves - uncoded - would be the secret ring setting. Instructions were quickly sent out to the Y Stations to pay particular attention to the first messages they intercepted each day. That's when the mistake would show up. Hut 6 studied the opening letter groups of the intercepts as fast as they arrived to see if the Herivel tip would work. Sometimes the operator made only a half-hearted attempt to spin the rotors. So LWZ would become LYB - just a click or two away - or perhaps LUX. But as the codebreakers plotted out each letter group, they would begin to see clusters of letters that revealed the original secret setting. Herivel's tip was working. At last, they had a way to break Luftwaffe RED. The codebreakers could now give the RAF vital information about how the Luftwaffe was organized and what it was planning - even if they didn't always know the details.
PETER CALVOCORESSI: You don't get a message saying, we are going to do the following great things in the next six months of the year, signed Hitler. Nothing like that at all, you don't get anything on a plate. There was a case of an intercept which consisted entirely of figures, random figures, and someone says, I wonder if they are coordinates on a map, and they all turned out to be airfields. You did in fact get from that that they were readying and building up airfields, because they were going to concentrate their forces on attacking Britain. Hut 6 broke the Air Force Enigma every day until the end of the war. And they kept discovering new types of careless mistakes by the German operators that gave them away. To avoid interception, the Germans had to disguise each message setting. They thought they had found the perfect solution: use the Enigma itself to conceal the setting. The operator had already been told to think up three random letters for the initial rotor setting. Now he was told to think up three more, and type them into the Enigma. They would be the key for that particular message, and since they were being encoded, they could be transmitted in complete safety.
ARTHUR J. LEVENSON: On the surface it looks like a foolproof indicator system, the true setting of the message is hidden. However, the weakness was leaving the selection of the three letters to the operator at random, and human beings simply are not random.
NARRATOR: Hut 6 soon saw connections between the two sets of supposedly random letters. Once they got the first three letters which were sent in plain text, they could often guess the second three, which were in code. One operator called Walter became legendary at Bletchley Park. Every day he would set his rotors to the first three letters of his name and then type in the first three letters of his girlfriend's name, Klara.
LEVENSON: One wonderful one: the outside indicator was TOM, and we thought oh, tom-tom, and we thought that, that didn't work. It was TOM MIX, the American cowboy actor from the 1920s, I don't know, I didn't know in Germany anybody knew who Tom Mix was, but apparently he had a following in Germany.
NARRATOR: HIT was almost invariably followed by LER. Even Hitler was helping to break the Enigma.
TONY SALE: They were given the manuals, they were told exactly what to do and how to use the machine, but part of the problem was this myth that the Enigma machine was completely unbreakable. And this was buried deep in the German psyche, so therefore they thought why bother, you know, nobody can break these messages if we use these keys because they're easy.
ARTHUR J. LEVENSON: If you saw LON as the first three, it was almost certain that DON was the second. MAD was RID, BER was LIN.
MAVIS LEVER: In the heat of battle you'd put up dirty words, and I am the world expert on dirty German words. The worst message I ever had come near me was one from the German high command to someone in Abwehr, the German Intelligence, reprimanding them for using these words because, did they not know that young girls were having to decode them? And of course a young girl at Bletchley was devastated because they were - however, they went on doing it, I might say, never mind the reprimand, but it was nice to think the Germans had that side of them that they would think that perhaps they oughtn't to use dirty words in their encodements.
NARRATOR: Despite its success in breaking the Luftwaffe RED code, Bletchley Park had got nowhere with the Enigma of the German Navy - and it was the Navy that was now the problem. By the spring of 1941, German U-boats were wreaking havoc in the Battle of the Atlantic. Every merchant ship sunk deprived Britain of the supplies it needed to survive. Slow-moving convoys of merchant ships regularly crossed the Atlantic to and from America. The United States had not yet entered the war but the convoys supplied half of Britain's food and all of its oil. Although protected by escorts, its convoys were still easy targets for the German U-boats. Hitler had ordered Admiral Karl Donitz to destroy Britain's lifeline.
SIR ROBERT ATKINSON: It was Donitz who realized quite early on that he could defeat the Allies by bringing England to its knees by starving us, if he could break that North Atlantic route then there could be no food, fuel, troops, munitions come to this country and he could win that war by U-boats, and he nearly succeeded.
H.J. KRUG: Donitz tried to build up a kind of elite spirit and everybody was proud to take part in that and we were very eager to join that force, and of course we had been brought up to adore taking risks in the National Socialist period when we were boys. So we were not really aware of the risk.
NARRATOR: Donitz built giant fortified U-boat pens on the French coast. From here his U-boats could strike out into the Atlantic. To attack the convoys, Donitz organized his U-boats into hunting groups or wolf packs, operating along specific patrol lines. As the slow moving convoys crossed the Atlantic, wolf packs of 30 or more U-boats would lie in wait.
SIR ROBERT ATKINSON: Almost every convoy there would be losses. They were very crafty, these German U-boat commanders. They would anticipate our route and submerge in daylight just ahead of the convoy and let the convoy pass over them and torpedo right, left and center and we wouldn't know where the attack had come from.
NARRATOR: Donitz controlled the wolf packs by radio messages encoded in the naval Enigma. Breaking it was to be the biggest challenge faced by Bletchley Park. If they failed, the Battle of the Atlantic - and the war - could be lost. One mind held the key to breaking the Enigma, and it belonged to Alan Turing.
PETER HILTON: Alan Turing was unique, I mean he was a genius, and what you realize when you get to know a genius well is that there's all the difference between a very intelligent person and a genius. With very intelligent people, you talk to them, they come out with an idea, and you say to yourself, if not to them, I could have had that idea. You never had this feeling with Turing at all. He constantly surprised you with the originality of his thinking, it was marvelous.
NARRATOR: Soon after becoming a research fellow at Cambridge at only 22, Alan Turing invented the first basic concept of a computing machine. Bletchley Park suited both his genius and his eccentricity.
ANDREW HODGES: He had funny manners. He didn't like wearing a tie, he always looked untidy, but he quite liked being out in the country where he cycled around, he cycled with a gas mask on during hay fever period. He didn't care what he looked like, he just thought that doing the job was what mattered.
SARAH BARING: He was very shy of women, particularly girls. I don't think he'd ever met any girls before. I did once offer him a cup of tea and he shrank back as if he was going to be shot. And he used to, bless his heart, walk down to the canteen in a curious sideways motion, with his head down. But he was such a star, we all thought he was the best, wonderful thing.
NARRATOR: Alan Turing set himself the challenge of cracking the Enigma. In an attic room at Bletchley Park, Turing began studying the U-boat messages. All he had to go on were the scrambled letters. In an astonishing feat of deduction, Turing discovered exactly how the Germans were hiding the crucial message setting. Unlike the Luftwaffe, the German Navy was leaving nothing to chance. Instead of letting the operator choose three letters at random for his message setting, he had to get them from a list. Although Turing had no information about the naval procedures, he managed to identify exactly how they selected their daily keys from a set of secret tables. Instead of replacing one letter with another, these so-called bigram tables substituted pairs of letters.
UNIDENTIFIED MAN: These codes were printed on rose paper in a ink that would immediately fade out if it got wet, so our orders were, in case of any difficulty, immediately to throw this material overboard or at least soak it in water so it could not be read.
NARRATOR: Brilliant as Turing's deduction was, it was useless without the secret bigram tables, and those were on board the U-boats. Then came an amazing stroke of luck. Captain Fritz Julius Lemp was a hero of the Third Reich. His U-boat, the U-110, had sunk the first ship in the war. In April1941, he set out on what was to be his last mission. David Balme had just turned 20. He was an officer on H.M.S. Bulldog, which was escorting a convoy from Liverpool bound for America.
DAVID BALME: We were south of Iceland and we knew we were being shadowed, you'd get the reports back from the admiralty - from the admiralty, you're being shadowed by U-boats. And we always knew we'd be attacked in this area. Suddenly two ships were torpedoed, one after another. It was obvious where the attack come from, and the Corvette Aubretia made a very accurate attack on the U-boat, must have got the depth charges at just the right depth.
NARRATOR: Georg Hogel was the Enigma operator on U-110. He had been with Captain Lemp throughout the war.
GEORG HOGEL [voice over translation]: The light went out and we found ourselves sitting in the dark. Only the emergency lights came on. We then tried to restore power and check for water leaks.
DAVID BALME: It was a classic attack, depth charges underneath the U-boat, blew it to the surface. It was the dream of every escort vessel to see a U-boat blown to the surface, because usually they just sink when you do have a successful attack and go down to the bottom.
NARRATOR: This was just the chance that Turing and Bletchley Park had been waiting for. On board the U-110 were the secret bigram tables.
GEORG HOGEL [voice over translation]: Down below we had no idea what was going on above us. But the commander on the bridge kept shouting, "get out, get out!" We asked, "what shall we do with the secret papers?" The order came back to leave everything and simply try to get out. I don't know - but we can't be blamed for following orders. You can't imagine what it was like if you weren't there.
NARRATOR: The Germans abandoned ship, leaving the code books behind. But Georg Hogel had one precious document he had to rescue - a book of love poems to his girlfriend.
GEORG HOGEL [voice over translation]: I went back down and grabbed the key to the place where the books were kept. I got my book out and tried to put it in my pocket. But it didn't fit, it was too big. So I unbuttoned my shirt and shoved it in there. It lay against my chest and that's how I swam for half an hour.
NARRATOR: David Balme led a boarding party across to the stricken submarine. Fearing that the Germans had left men behind to scuttle the boat, Balme went aboard first.
DAVID BALME: One couldn't imagine the Germans would have abandoned this U-boat floating in the Atlantic without someone down below trying to sink her. At any rate I got on, got my revolver out - secondary lighting, a dim blue lighting, was on and I couldn't see anybody, just a nasty hissing noise which I didn't like the sound of. To this day I don't know what it was.
NARRATOR: The rest of the boarding party began to search the U-boat. They had no idea what they were looking for. They did not know about the secret bigram tables. David Balme had never heard of Bletchley Park.
DAVID BALME: I sat down at the captain's desk in his cabin, and suddenly amongst all the things, I think his iron cross was there and I put that into a bag and various odds and ends, but also I came across a sealed envelope, I didn't open it, wouldn't have understood at any rate, being I'm not speaking German, but it obviously was something fairly important, being a sealed envelope in his desk, so I popped it into my pocket.
NARRATOR: Little did David Balme realize that the envelope in his pocket would transform the intelligence battle against the U-boats. It contained procedural handbooks, a U-boat navigational chart, and the vital bigram tables. These documents gave Bletchley Park a major leap forward in decoding. Captain Lemp died in the attack. No one will ever know why he did not scuttle the U-boat or destroy the codes.
GEORG HOGEL [voice over translation]: You can't change things in retrospect. I had to leave because those were the orders. And the unequivocal order was to leave everything behind and go up and climb onto the deck. There was no other way.
NARRATOR: The only document on the U-110 that did not end up in British hands was the book of love poems to Edith. The papers that were captured, including the bigram tables, were priceless. When the documents reached Bletchley Park, the codebreakers rejoiced. The tables and charts would lead to a drastic improvement in fixing U-boat positions, so convoys could be routed evasively around the wolf packs.
VALERIE EMERY: The prize were the bigram tables and they were magnificent, although some of them had got a bit wet and we had to dry them. Geoffrey Tandy, having been at the Natural History Museum, had access to proper drying paper which he brought down by a load, and we had to dry those and clean them up and distribute them as necessary.
NARRATOR: Almost immediately the results were evident. On June 23 rd , 1941, Bletchley Park decoded a U-boat message that would save a convoy. It was heading for England laden with supplies, and the codebreakers discovered that a wolf pack of 10 U-boats was lying in wait. Armed with this knowledge, the Admiralty could reroute the convoy and set up a counter attack. The attack lasted five days two of the U-boats were sunk and the convoy arrived safely. The Allies had a formidable new weapon in the Battle of the Atlantic. But the war was far from over. Frustrated in his attempts to crush Britain, Hitler now dreamed of conquest in the east. In the spring of 1941, decoded Enigma messages hinted at preparations for a massive invasion of Russia. Once the invasion was under way, Bletchley Park began decoding other, more alarming messages.
As the German troops advanced, the SS and police sent signals reporting their mass killings of Soviet Jews. Although no one anticipated the full scale of the genocide, this is now known to be the opening chapter of the Holocaust. When Churchill saw the decodes amidst other evidence, he wanted the whole country to share his outrage.
WINSTON CHURCHILL [archive, radio speech]: Since the Mongol invasions of Europe in the 16th century, there has never been methodical, merciless butchery on such a scale. We are in the presence of a crime without a name.
NARRATOR: Churchill was taking a chance that the Germans would realize their codes had been broken, exposing the work of Bletchley Park. It was a huge gamble. In fact, the head of the order police was suspicious and ordered new restrictions on the sending of reports on the mass killings by radio. Luckily for Bletchley Park, the German high command never lost its faith in the Enigma. But to avoid further risk of exposure, security was tightened and all information resulting from Bletchley Park decodes bore the top secret rating, code word Ultra.
PETER CALVOCORESSI: The Germans didn't attach much importance to intelligence at the beginning. You don't if you're winning. They attached importance to the Blitzkrieg and winning the war quickly. We attached great importance to intelligence because we had our backs to the wall and we had nothing else that we could rely on.
NARRATOR: By the summer of 1941, Bletchley Park was able to crack the naval Enigma in less than two days, due partly to the U-boat documents and partly because they had learned to exploit a crucial weakness of the Enigma machine. When an operator typed a message on the Enigma, the machine would replace every letter with a different one. The letter typed in never came out the same. This was yet another basic flaw in the Enigma that could be exploited. The simple fact that no coded letter could ever be the original letter was vital to the codebreakers in their quest to unravel the messages. As they studied the intercepts, it became clear that the Germans kept repeating certain set phrases. It was soon possible to predict which message contained a particular phrase. Bletchley Park called these phrases "cribs."
PETER HILTON: I remember "Nieder mit die Englander," down with the English. And of course "Heil, Hitler." "Heil, Hitler" was enormously valuable, I mean you should never inculcate in your military, anyway, the tendency to have exactly the same phrase opening every statement of a great victory.
NARRATOR: As military bureaucracy settled into routine, the Germans often sent the same message at the same time every day.
NIGEL FORWARD: There was one remarkable one which we used to, used sometimes to cheer us up as a sort college yell, because it had such a wonderful rhythm. It went as follows: nicht und fliebar, nicht auf Gebaude, gift zu Dusseldorf, puffel swoll," and you can imagine six or seven adults who had nothing better to do on the night shift reciting this and feeling a lot better afterwards, perhaps two or three times in some cases. I mean, that message in itself was pointless. All it said was, "you cannot fly from this place, no building has taken place, signed off, whatever." It would have been much better if they hadn't sent it, from their point of view. It was simply the way into the code.
NARRATOR: When they suspected the presence of a set phrase, the codebreakers then searched for it in a message. Finding the correct position for the crib relied on the flaw in the Enigma. The codebreakers lined their crib up against the coded message. Since they knew the Enigma would never duplicate a letter in the original, if any pairs of letters did match, the phrase must be in the wrong position. They slid the crib along the message until they found a point where none of the letters were the same. This could be where the phrase was located. If successful, they could then work out the Enigma settings for the next 24 hours. The codebreakers became so adept, they would create their own cribs. They would ask the RAF to drop mines in a specific stretch of sea. The Germans would immediately send a message giving a grid reference for the mines. The codebreakers knew the grid reference CF97 would be spelled out in the coded German message. So they used "caesar fritz nein sieben" as the crib to find the Enigma key. Bletchley Park called this gardening. By now the codebreakers were not merely learning about the Enigma, but about the whole system of war communication. Could the new intelligence have an impact on an entire military campaign? The test came in the deserts of North Africa. A new German general was making a name for himself with his aggressive attacks on the British: Erwin Rommel.
MANFRED ROMMEL: My father was what you could call a warrior, he was more a soldier's general, not a paper general. He was very lucky in Africa, not having been wounded, except one day when a British splinter from a shell hit his belt, but the splinter was sticking in the belt and not in his body. Throughout 1941 the desert war swung back and forth across Libya as the Germans tried to capture North Africa. With only radio for communications, Rommel's North African campaign depended on the Enigma.
MANFRED ROMMEL: My father had never an idea that the German code was broken. He could not imagine that something like this could happen.
NARRATOR: But Rommel's strategy had one major weakness. He relied totally on the Italians to bring in supplies. Rommel's supply lines were a natural target for the British.
The RAF was able to attack Italian convoys crossing the Mediterranean to Rommel because the codebreakers could read both the German Luftwaffe Enigma and the Italian special machine cipher.
PETER HILTON: I could not understand how Rommel failed to realize that we were breaking important signals. I mean, he was a superb general, he was winning, but then he started losing because his supplies were always sunk in the Mediterranean.
NARRATOR: Bletchley Park could pinpoint the location of enemy oil tankers and even know how much gasoline they were carrying. But to keep Ultra safe, it had to look as though the British knew about the convoys from some other source.
RALPH BENNETT: There was an absolutely rigid rule that we could not use Ultra unless first of all an aircraft had been sent out to reconnoiter. Once the Ultra had been proven by the Germans seeing a British airplane looking at the convoy, then you could use it, but not until. They might very well say, "I wonder how they knew it," but fortunately they always deluded themselves by saying it must have been an Italian traitor in the Naples docks.
MANFRED ROMMEL: My father ended his life with the suspicion that there was a gap in the Italian high command through which news escaped and arrived at the British side. But in heaven he must apologize towards the Italians and say, "I was wrong."
NARRATOR: But in the game of intelligence, the Allies had losses as well as gains. Although the German secret service never cracked an Allied cipher machine, Rommel did obtain vital inside information from a spy. The incident began earlier in 1941 when a group of American codebreakers visited Bletchley Park. With America not yet officially at war, the secret services on both sides were nervous about collaborating.
CARL BOYD: Spies are not prone to share a great deal straight away, you know. They - it takes time for spies to warm up with one another, and even British and American spies, they played their cards very close to their chests.
NARRATOR: Although the British worried about the possibility of American security leaks, they began sharing decoded Enigma messages and diplomatic reports about the war. British security fears were justified, for these exchanges soon gave Rommel his own intelligence breakthrough. Reports on the British campaign in North Africa were sent regularly to Washington by the U.S. military attaché in Cairo. The Germans intercepted the messages, but couldn't break the diplomatic code. Then, in September 1941, the Italian secret service broke into the U.S. embassy in Rome and stole the code book used to encipher all U.S. diplomatic messages. The thieves copied the code book and returned it to the safe without anyone knowing. Now Rommel could read all embassy transmissions about the British campaign. Armed with information about British troops and tanks, Rommel launched a bold assault through Libya, pushing the British back 300 miles in 17 days. The news that reached Churchill painted a grim picture of defeat. Now the British needed their own intelligence coup to reverse the disaster. At Bletchley Park, the codebreakers raced to crack the daily rotor settings. Some breaks came in only six to 12 hours. Still, lives might be saved if the operation could be speeded up. The gifted codebreaker Alan Turing had long been intrigued by the idea of building machines to automate the codebreaking process. The Poles had built such a device before the war, but Turing set out to improve on their ideas. Turing's goal was to build a machine that could figure out how the German operators had set up their Enigmas for that day's messages.
Using stock phrases, or cribs, to deduce the rotor settings was the most time-consuming part of the whole codebreaking process.
ANDREW HODGES: Alan Turing's great breakthrough was seeing - that finding out the rotor settings from that crib was something that could be done by a machine, that was the great starting point and brought the whole thing into the modern age.
NARRATOR: Turing's machine was vastly more powerful than the Poles' earlier device. Curiously, Bletchley Park called it the Bomb, perhaps because of the ticking noise it made while operating.
ARTHUR J. LEVENSON: An average Bomb run was about 15 minutes. Occasionally I heard we beat the Germans to the decryption. This happened when A would send B a message and B would almost immediately send back a message, a very short message, which just said, "I can't read you." We would get the solution faster than the other guy could decipher the second sending. And if it was something hot, it'd get out in the field before the German commander got his.
NARRATOR: The Bomb was an array of electromechanical drums that simulated the rotors of the Enigma machines. The drums clicked round letter by letter, testing the thousands of possible Enigma settings - 20 every second - until the correct one had been found.
TONY SALE: Before Turing, the perceived wisdom was, you've just got to go around searching for this one solution which will break a particular message. Turing said no, what you do is you use the mathematical technique of rejecting all things that it couldn't possibly be. So it was a very powerful search engine, but working in a negative sense in that it rejected millions and millions of possibilities very, very quickly and arrived at the correct answer.
NARRATOR: The Bombs radically sped up the pace of decoding. By the end of the war there were 200 of the devices at six different locations, enabling Bletchley Park to decode 90,000 messages a month.
ANDREW HODGES: The algorithmic process, as we call it now, by which the crib and the cipher text were processed on these mechanical systems, they were the most advanced, most complex processes that had ever been used in the history of the world. I can't think of anything else with its logical and statistical sophistication. It's something you should think of as years and years before its time.
NARRATOR: Meanwhile, in August 1942, Churchill traveled to North Africa, determined to reverse the Allies' fortunes. His first action was to inject fresh blood into the leadership of the 8th Army. He appointed a decisive new general, Bernard Montgomery, to take on Rommel's Africakorps. He knew from Ultra that Rommel was prepared to attack somewhere in Egypt - but where? Montgomery predicted the ridge at Alam Halfa.
RALPH BENNETT: Monty said, looking at the ground, he will go over the Alam Halfa ridge. Some days later we decoded a signal from Rommel saying, I am going to attack on the 30 th of September the Alam Halfa ridge, which is exactly what Monty had said. I think from that moment on Monty was so confident of his own intelligence that he couldn't be beaten, he couldn't - he knew everything.
NARRATOR: But Montgomery had another advantage. The Allies finally realized that the Germans were reading U.S. embassy reports on the British campaign, so the embassy changed its diplomatic code. Rommel no longer knew what the enemy was planning. Montgomery was still receiving Ultra from Bletchley Park. Soon, the German forces were under enormous pressure. But some of the decoders began to feel impatient with Montgomery.
PETER HILTON: We felt that Montgomery did not trust the intelligence information that Bletchley Park was providing him with, because we believed in our own arrogant way that we were probably providing a service to the military that no other military had ever had in the history of warfare.
NARRATOR: On the 23 rd of October, the British launched its attack at El Alamein.
ARCHIVE RADIO: Our mandate from the Prime Minister is to destroy the Axis forces in North Africa. We're going to finish with this chap Rommel once and for all.
NARRATOR: British intercept stations logged over 300 messages a day in the battle that followed. Bletchley Park knew Rommel's plans, his forces, and his losses. For the first time in the war, an army moved into battle with precise advance knowledge of the enemy. Ultra told Montgomery of Rommel's critical shortages of fuel and tanks. On the evening of the 2 nd of November, Rommel signaled Hitler for permission to retreat.
JOHN PRESTWICH: Alamein was marvelous, because you had these desperate messages from Rommel saying, Panzer Army is exhausted, we've enough petrol for 50 kilometers, ammunition is contemptible, and so on, and we have between 11 and 17 operational tanks in the whole of Panzer Army Africa.
NARRATOR: Hitler replied the next day, ordering Rommel not to yield a step, either victory or death. Montgomery read the message within hours. At El Alamein Montgomery's superior forces crushed Rommel. Yet he decided not to pursue the remnants of the retreating German Army.
RALPH BENNETT: We told Monty over and over again how few tanks Rommel had got. So Monty could have wiped Rommel off the face of the earth. Why he didn't do so, why he didn't wipe it off the face of the earth, I simply do not know, nobody else knows.
JOHN PRESTWICH: Why was the Hut 3 information not used? It was so full, I mean that was our exasperation. We were giving Monty every conceivable information about the state of Rommel's troops, the number of operational tanks, which was terribly crucial. I mean, you know, enough - about as many tanks as could be parked on the lawn at the back of this house. In desert warfare, no tanks and you're finished.
RADIO ARCHIVE: This is the BBC Home and Forces program. Here's some excellent news which has come during the past hour from GHQ Cairo. It says, the Axis forces in the western desert after 12 days and nights of ceaseless attacks by our land and air forces are now in full retreat.
BARBARA QUIRK: "Somehow war seems the natural state of affairs, and peace when it comes will take a hell of a lot of getting used to."
NARRATOR: At the time of El Alamein, the U.S. had been at war with Germany for nearly a year. Even before Pearl Harbor, the British Admiralty had been passing decoded U-boat messages to the American Navy. Churchill and Roosevelt knew that the Battle of the Atlantic was crucial and that Ultra gave them a vital edge in the fight against the U-boats. In February 1942, the Admiralty received disastrous news. An abrupt change in the U-boat code plunged Bletchley Park into darkness. They could no longer read the U-boat signals. Equally serious was an abrupt change in U-boat tactics. German submarines switched from the North Atlantic and began prowling the eastern seaboard of the U.S. There, the marauding U-boats maintained radio silence. When they did transmit, their signals couldn't be decoded. All over the Atlantic, the Allied navies struggled to cope with mounting losses at sea. As the crisis deepened, the naval Enigma team at Bletchley Park worked round the clock to crack the new code, which they called Shark. Since none of the old codebreaking tricks would work, it was obvious that Donitz had somehow drastically changed the Enigma. For the Allies on both sides of the Atlantic, it was a severe blow.
COLIN BURKE: Well, unfortunately the British lost control of the Enigma, and America was left without the kind of vital information needed to protect its convoys. There were an awful lot of protests, and England was very hesitant to tell us that they had lost control of the code.
NARRATOR: Before the blackout, the Admiralty's submarine tracking room had been able to pinpoint U-boats with the help of the navigational positions radioed between Donitz and his crews. Now all they had were rough directional fixes on the signals themselves. Toward the end of 1942, the Allies were losing ships at over four times the rate before the blackout. Finally Bletchley Park figured out what Donitz had done. Though still believing the Allies could never crack Enigma, he was worried about internal security, and ordered the addition of a fourth rotor to the machine. The revolving rotors, with their maze of constantly changing electrical wiring, were the secret of the Enigma. Introducing a fourth one vastly multiplied the number of potential settings. Now the codebreakers would have to build a new type of device to simulate the four-rotor Enigma, and pacify the increasingly impatient Americans.
COLIN BURKE: It got to the point where by mid-1942 the Americans declared that no matter what, they would go their own way and make sure they'd get their own independent capability against the German submarine menace and its code systems. And it became quite touchy as to whether or not the two sides would cooperate.
NARRATOR: Tensions grew when secrets were withheld from an American intelligence officer visiting Bletchley Park. He wrote an angry report home. To resolve the crisis, Bletchley Park's second-in-command traveled to Washington for a meeting with the U.S. Navy. They signed an agreement to resolve concerns about security and to cooperate fully on the breaking of the naval Enigma. As part of the deal, American codebreakers would be sent to Bletchley Park. Together they would take on the challenge of the fourth rotor.
SARAH BARING: What I think bothered us most was the destruction of the merchant shipping and the destruction of the naval ships, and knowing that if only we could break this wretched code, we could save so many lives and sink so many U-boats.
NARRATOR: The first chance to get back into the naval Enigma came when a fresh set of captured U-boat code tables arrived at Bletchley Park, enabling the codebreakers to uncover a critical weakness in the four-rotor system. The German four-rotor Enigma used mainly on submarines had to communicate with other naval stations that used only a three-wheel machine. To solve the problem, the fourth rotor could be set in a special position that allowed the machine to simulate an old fashioned three-rotor Enigma. With the help of the captured tables, the codebreakers worked out the settings of the first three rotors on the Bombs as they had in the past, then simply ran through all 26 positions of the fourth rotor until they found the right one. Soon, the daily settings were on their way to the Admiralty and America. After 10 months in the cold, Bletchley Park was back.
SHAUN WYLIE: The excitement when we got back into the U-boats was terrific. I was on night shift and somebody came running and said, "We're back into the U-boats," and it was the one that meant we were going to be able to go on getting into the U-boats so that was terrific. It wasn't just a one off, it was - we were going to be able to do it steadily. Churchill was told as soon as possible. It was a great moment.
NARRATOR: Once again Bletchley Park could help reroute convoys around the Wolf Packs. Airborne radar and improved escort support helped assure victory in the Battle of the Atlantic. Although only a few of the men and women of Bletchley Park were in a position to appreciate it, the breaking of the naval Enigma was their finest hour. By the spring of 1943, they were decoding dozens of messages a day, and cooperation with the Americans was taken to a new level. The U.S. codebreaking unit was known as Arlington Hall, after its headquarters in northern Virginia. After the war, it would become the National Security Agency, or NSA. Here the first American officers were selected to join the codebreakers at Bletchley Park.
WILLIAM BUNDY: I remember vividly, a group of us were convened in a room there, and the moment we came in they were told, "What you're going to hear today is something you will not discuss, and it means that you will never be put where you can be captured by the enemy." And I was picked to be the commanding officer of that outfit, and that's how I got to Bletchley Park.
NARRATOR: During their voyage to England, the officers were ordered to tell a bizarre cover story, that they were messenger pigeon experts in the signal corps. This aroused the suspicions of an officer who was checking their identity.
ARTHUR J. LEVENSON: They asked us whether we'd had the Army general classification test, they said they couldn't find our scores on our records. They said, would you mind taking the test, and we said no, we don't mind. There were five of us, and we took the test, and this sergeant graded them, and he came running up, he says, "Holy mackerel. What scores! You guys ought to be in intelligence!" I don't think I'd ever met an Englishman in my life until that point. I had been full of stereotypes about the English, you know, they're distant and have no sense of humor, and these were the most outgoing, wonderful people. Fed us when it was quite a sacrifice, just enough screwballs to be real fun.
LORD BRIGGS: It was the first time I'd ever been involved in my life in any serious discussion, both either about war or politics with an American. It was there that I learnt for the first time to drink tomato juice, it was the first experience I had with American coffee and American bacon, so that in a way America was introduced to me through this Bletchley prelude.
NARRATOR: The Americans quickly settled into life at Bletchley Park. The only serious dispute arose when the British challenged the Americans to a game of rounders, the British version of baseball.
BARBARA EACHUS: We said of course, we were delighted, you know, our honored allies. So the Americans came and we showed them how they could play with - they said what, no baseball bat? We said no, we just use this broom handle. So they said fine. And we played. It was a lovely day. We all played well. And at the end of the game, we all sort of clapped each other on the back and the Americans said well, "We're sorry we beat you," and the British captain said, "I'm sorry we beat you." And that was a little bit of an incident, because the Americans said they thought they'd won, and we said we knew we'd won. And they said, "Well what rules do you play by?" And we said, "Our rules."
NARRATOR: As the Americans adapted to their new life, their colleagues told them about a mysterious and daunting codebreaking problem. They knew that in addition to Enigma, the Germans sometimes used another completely different kind of cipher machine.
TONY SALE: Now we knew nothing about this cipher machine, it was kept completely secret by the Germans, and we first began to intercept radio transmissions in 1940. It was actually a group of policemen on the south coast of England. They were listening for German agent transmissions from within the U.K. Of course there weren't any because we'd captured all the agents, but they were still listening for these and they heard these weird signals. And they sent them to Bletchley Park.
NARRATOR: At first, the decoders puzzled over the origin of the strange signals. Hitler had demanded a cipher machine for the German high command that was faster and even more secure than the Enigma. His experts devised a coding system based on the teleprinter machine. Teleprinters operated on a simple, universal binary code that was widely known. But the Germans connected the teleprinter to a machine that cunningly exploited the teleprinter language itself to produce a complex code. The secret German coding machine was called the Lorenz. To scramble a message the Lorenz used 12 rotors - not just the three or four of the Enigma.
DONALD MICHIE: The Lorenz machine transmits a string of letters, each one of which is actually a mix of the real letter of the real message and a piece of machine crafted gobbledygook, that machine being of diabolically complex craftiness. So at the end of it, what comes out and goes over the ether and is transmitted, is a single string of total gobbledygook.
NARRATOR: The Lorenz relied on a mathematical system called "modulo two addition." This allowed the string of meaningless letters added to the message at one end to be removed at the other by a similar math calculation.
TONY SALE: The operator presses a key on his teleprinter, that generates an electrical signal, the Lorenz machine then adds an obscuring character to this signal and the result is then transmitted. At the other end of the link another Lorenz machine set to exactly the same configuration regenerates exactly the same obscuring character, adds it back to the cipher text, and by the magic of modulo two arithmetic they cancel out and leave you with the plain text.
NARRATOR: The security of the Lorenz depended on the fact that it was adding a string of random letters to hide the real message.
TONY SALE: But because it's a machine, it can't generate a completely random set of letters. It's what's known as pseudo random. Unfortunately for the Germans it was more pseudo than random, and that's how it was broken.
NARRATOR: Bletchley Park gave the mysterious code the name FISH. They worked out that fish was based on teleprinter language. How to strip off the obscuring code was anybody's guess. But on the 30 th of August, 1941, a lazy German operator gave the whole game away.
TONY SALE: When he got to the end of keying in this nearly 4,000 character message by hand, the operator at the receiving end sent back in German the equivalent of, "Didn't get that, send it again." And then like idiots they both put their Lorenz cipher machines back to the same start position, and then he began to key this long message again.
NARRATOR: When the operator began to encode the same message a second time, he grew impatient and abbreviated parts of it. The resulting slight changes enabled the codebreakers to strip off the random letters that were cloaking the message.
PETER HILTON: For me the real excitement was this business of getting these two texts out of one sequence of gibberish, it was marvelous. Never, never met anything that was quite as exciting. Especially since you knew that these were vital messages.
NARRATOR: Now that they had decoded the message, could they use it to figure out exactly how the Lorenz machine worked? For the next two months, the codebreakers hunted laboriously for patterns in the endless strings of obscuring letters. Eventually they were able to reconstruct the precise mechanics of the Lorenz - a machine they had never seen. They even built their own replica. Since it was used to crack the mysterious Fish code, they called the replica Tunny, after a fish in the tuna family. Once the Lorenz settings were found, Tunny could turn the messages into plain German. Despite the advances in understanding Fish, it still took at least a month to decode a single message, and by then the information was generally useless.
LORD JENKINS: It was a curious life, it involved mental gymnastics and it could be, could be very wearing, particularly if you didn't succeed. I mean, you could spend nights in which you got nowhere at all. You didn't get a single break, you just tried, played around, played around through this bleak long night with total frustration, and your brain felt literally raw, your psyche or whatever it is felt frustrated, but your brain always literally felt raw at the end of it.
NARRATOR: But the whole process was about to be speeded up. At the post office research station in London, a brilliant young telephone engineer hit upon the idea of an electronic machine that would automate the hunt for the Fish settings. The machine would be nothing less than the world's first programmable computer.
THOMAS H. FLOWERS: I tried to tell Bletchley Park what my ideas were, but you must understand the technology that I was using was then only just known to very few people in the whole world.
NARRATOR: Though the codebreakers were skeptical, Flowers was convinced the answer lay in vacuum tubes - hundreds of them.
TONY SALE: Tommy Flowers started in March 1943 with a blank sheet of paper, never been done before. I mean Flowers was thinking of a machine with 1,500 valves in it. The biggest machine ever at that time had 150 valves in it, so this was an enormous leap into the dark, but Flowers was convinced he could make it work - nobody else was but he was - and so he started more or less off his own bat.
THOMAS H. FLOWERS: We just told people to do things. We had the power, we had the authority to tell anybody - we had the first priority in the whole country for everything, and we could just tell people what we wanted and not tell them what it was for.
NARRATOR: Over Christmas 1943, Tommy Flowers installed the world's first programmable computer at Bletchley Park. Eventually ten more were built, all dedicated to analyzing the secret messages of the German high command. They were given the name Colossus. Colossus could read a coded message at high speed and then search for the settings of the Lorenz code wheels. It could accomplish this in minutes instead of a month.
TONY SALE: Tommy Flowers realized that it was possible to read paper tape optically at very high speed, and this is going at 5,000 characters a second, 30 miles an hour the tape goes through there. And it's quite incredible that it can actually read information at that speed.
THOMAS H. FLOWERS: In fact, we did a test on how fast we could drive it before the tape broke, and we got up to nearly 60 miles an hour, so we decided that was a bit - when it did break it went all over the place, it just disintegrated.
NARRATOR: Colossus began operating five months before D-Day, the critical invasion of France in June1944 that would turn the tide against Hitler. Tanks and guns choked every main road and street in southern England. The Allies prepared an elaborate deception. They set out to trick the Germans into thinking that the attack on Normandy was simply a diversion. Double agents in Britain relayed the false information to Berlin, but only the codebreakers could tell if the deception was working.
PETER CALVOCORESSI: The Germans were deceived for a very long time, far more than we expected and far more successfully. But we also got a bonus, if you like. That is, we knew they were deceived, because from Ultra we could see that they were not moving troops into Normandy, they had to say to themselves, they'll pop over to Calais. The Germans were not only deceived, they were known to be deceived.
NARRATOR: It was an enormous subterfuge and an even bigger gamble. Around the clock, the Allies searched for the merest hint of German suspicion. The invasion was poised to strike. But then, a vital message was decoded at Bletchley Park.
ARTHUR J. LEVENSON: Just before D-Day, Marshal Rommel, the desert fox, was appointed inspector general of the western defenses, and he sent this enormously long message, very detailed description of the western defenses, where each unit was located and what equipment they had. It was a - it was 70,000 letters, which was read.
NARRATOR: When Bletchley Park decoded Rommel's message, it contained alarming news. German tanks were massing at the exact spot where American troops were about to parachute into Normandy.
ARTHUR J. LEVENSON: They were going to drop the - one of the airborne divisions right on top of a German tank division. They would have been massacred. They changed it.
NARRATOR: It was June 4 th , 1944. Reassured by the codebreakers that all was well, the massive army began to move forward. Then came a discouraging setback.
PAT BING: We went on duty that night and they said, "Well, tonight is the invasion and they're going across." And so we slaved away. Well, of course as everybody knows, by about four o'clock in the morning, the weather was so bad they had to bring them all back. Which of course was bad luck for us because they then came and said, well you can't go walking about Bletchley when you know that the invasion's going to be tomorrow night, so we just had to stay there.
NARRATOR: Twenty-four hours later, the Allies launched the biggest military invasion in history.
SARAH BARING: We had dinner and we came out at eleven o'clock, and I suddenly started to hear a hum and it got louder and louder and louder, and I knew what it was. And about ten minutes later the sky was black with aircraft towing gliders, and my friend said, I wonder what that is, and I said, I haven't the faintest idea.
WILLIAM BUNDY: And about three o'clock, I think it was, suddenly there was a real rustle and very shortly the word spread that there had been German traffic saying that paratroopers were dropping all over the place. So we knew, we knew this was it.
NARRATOR: The decoded messages showed that the deception had worked. Hitler's troops were split between Normandy and Calais and were unable to counter the onslaught. Over half the German forces had remained in the northeast, awaiting an attack that never came. At Bletchley Park, those who knew about the invasion weren't allowed to leave for 48 hours. Even now, nobody was taking any chances.
PAT BING: We staggered out feeling rather the worse for wear, but knew it was then general knowledge, and went home, and my lady I was billeted on said to me, where the bloody hell have you been? And I said, well I've been working. She said, "Well you've missed all the fun." And I said, "What fun?" And she said, "Well there was the invasion, it's been on the radio" - 'cause no television - it's been on the radio. I said, "Oh lovely," you know, and went to bed.
BARBARA QUIRK: "Tuesday, 6 th of June, 1944, invasion began. 10 a.m. breakfast, letter from Maureen, spent morning washing and ironing, on at four, life quite hectic. Feel somewhat anticlimax-y now the second front has begun. Not a bad day, really."
NARRATOR: It had not been a bad day for the codebreakers either. They had accurately foretold the position of all but two of the 62 German divisions. Enigma and Lorenz messages were read throughout the D-Day operation. By the end of the war, they had handled at least 63 million characters of high level code between Hitler and his generals. In the months that followed, Bletchley Park would continue to chronicle the disintegration of Nazi Germany - right until the end of the war. Finally, at the cost of at least 50 million lives, the Second World War came to an end.
LORD BRIGGS: When the final signal came through from Donitz surrendering, it was in clear and not in code, and that was extremely interesting because you felt the war was then really over. When messages did begin to come through in clear, then all the secrets of the war really were beginning to fade into history already.
NARRATOR: In the roll call of those who had brought about victory, the codebreakers of Bletchley Park would never be mentioned. The operations there were to stay a secret for the next 30 years. Eight of the ten Colossus machines were destroyed. The remaining two were moved to British secret service headquarters, where they may have played a significant part in the codebreaking operations of the Cold War. In fact, the Russian military had developed a code that was similar to the high command's Fish code. So the techniques invented at Bletchley Park were still to prove vital in a very different kind of conflict. In 1960, the order finally came to destroy the last two Colossus machines.
THOMAS H. FLOWERS: That was a terrible mistake. I was instructed to destroy all the records which I did. I took all the drawings and plans and all the information about Colossus on paper and put it in the boiler fire, saw it burn.
NARRATOR: Tommy Flowers returned to the post office and was forgotten. In all the secrecy, Colossus never received recognition as the world's first programmable computer. Instead, that honor was to go to the American Eniac. As for the codebreakers, they all dispersed, some back to universities and others into the fledgling computer industry. A few stayed on in the British secret service, while some of the Americans returned to Arlington Hall. The most innovative thinker of all, the man whose inventiveness had been at the center of Bletchley Park's success, died tragically. In 1954, Alan Turing took his own life after being persecuted as a security risk because he was gay.
DONALD MICHIE: Alan Turing is one of the figures of the century. The world of computing and now the world of the Internet stems from Alan Turing's fundamental ideas. There were other great men in Bletchley Park, but in the long, long hall of history, I think Turing's name will probably be the number one in terms of consequence for mankind.
NARRATOR: Apart from the Atom Bomb, there was no greater secret in World War II than the work of the codebreakers of Bletchley Park. Their breakthroughs gave the Allies a vital edge in the U-boat war, the tank battles against Rommel, and the D-Day invasion. But their impact was felt far beyond the battlefield. Eavesdropping and decryption won a new prominence in the minds of politicians as well as generals. The transatlantic alliance, that took its first hesitant steps at Bletchley Park, would mature and prove critical during the Cold War. And the roots of today's computer era trace back directly to the dazzling inventiveness of Turing, Flowers, and their wartime colleagues. In the end, though, Bletchley Park's greatest achievement lay not in broken ciphers but in the hundreds of thousands, perhaps millions, of lives it saved.
TONY SALE: Historians generally agree that it shortened the war by two years. Bletchley Park didn't win the war, that was won by people with guns and bullets and things out in the field, but I think Bletchley Park is a great exemplar, particularly to the younger generation now, of brains over bullets. You can defeat an enemy intellectually, and that was shown here.
The World Wide Web relies on more sophisticated codes than were used in all of World War II. On NOVA's Website, find out how cryptography affects you today more than you may think.
To order this show, or any other NOVA program, for $19.95 plus shipping and handling, call WGBH Boston Video at 1-800-255-9424.
NOVA is a production of WGBH Boston.
Major funding for NOVA is provided by the Park Foundation, dedicated to education and quality television.
This program is funded in part by Northwestern Mutual Life, which has been protecting families and businesses for generations. Have you heard from the quite company? Northwestern Mutual Life.
C|Net, bringing the digital age into focus. CNET.COM, the source for computers and technology.
And by the Corporation for Public Broadcasting and by contributions to your PBS station from viewers like you. Thank you.
Next time on NOVA: they risked it all in a perilous flight to the finish.
Bertrand joined the French military as a private in 1914 and was wounded in 1915 at the Dardanelles. From 1926, he worked in radio intelligence.
In the 1920s, French radio intelligence was decentralized. Decryption of foreign, chiefly German and Italian, ciphers and codes was the responsibility of a General Staff cryptology department, while radio monitoring was conducted by the intelligence service, Service de Renseignement or S.R. At the end of 1930, decryption was turned over to the S.R., which created a Section D (for Decryptement), of which Bertrand became chief. He later took over all of French radio intelligence. 
Bertrand's intelligence associates had purchased documents pertaining to the Enigma machine from Hans-Thilo Schmidt (codenamed "Asché" by the French), an employee at the German Armed Forces' Cryptographic Agency. In December 1932, then-Captain (later, General) Bertrand turned these documents over to the Polish Cipher Bureau's chief, Major Gwido Langer. Asché's documents, according to cryptologist Marian Rejewski's testimony, proved in practice crucial to his mathematical solution of the military Enigma machine's wiring. During his work with the Poles, Bertrand used the code name Bolek, given him by the Poles.
Bertrand was to learn of the Poles' success against Enigma only six and a half years later, at a trilateral Polish-French-British conference held in the Kabaty Woods, south of Warsaw, on 25 July 1939, just five weeks before the outbreak of World War II.  After Germany's invasion of Poland in September 1939, then-Major Bertrand from October 1939 to November 1942 sponsored the continued work of prewar Cipher Bureau personnel: first at PC Bruno, outside Paris then, after Germany's invasion of France (May–June 1940), at the Cadix center in southern France's Vichy "Free Zone."
Over a year after the Cadix center had been scattered to avert capture by the Germans, on 5 January 1944, Bertrand was captured by the Germans as he waited at the famous Church of Sacré Cœur, in Paris' Montmartre district, for a courier from London. The Germans suggested that he work for them. Pretending to agree, Bertrand was allowed to return with his wife Mary to Vichy to contact British intelligence. There he sent his underground comrades into hiding and went into hiding himself. On 2 June 1944, four days before the D-Day Normandy landings, at an improvised airstrip in France's Massif Central, Bertrand, his wife and a Jesuit priest who served as a courier of the Polish Resistance climbed into a small, unarmed Lysander III aircraft that flew them to the British Isles. Bertrand and his wife moved into a house in the Hertfordshire village of Boxmoor just a short walk from the Polish radio-intercept station and cipher office at the nearby village of Felden where Marian Rejewski and Henryk Zygalski were working.
Bertrand retired from the French Secret Service in 1950 and went on to become mayor of Théoule-sur-Mer in southern France.
In 1973, the Paris publishing house Plon published his book, Enigma ou la plus grande énigme de la guerre 1939-1945 (Enigma, or the Greatest Enigma of the War of 1939-1945). The book, one of the principal primary sources on the history of Enigma decryption, for the first time gave a detailed account of the some eleven years of Franco-Polish collaboration in breaking and reading Enigma before and during World War II.
“My name is Lemoine, and I represent the French Intelligence Bureau. Tell me in detail who you are, what you do and why you are turning to us. I will listen… but first, would you like another glass of whisky?”
Rodolphe Lemoine, aka Herr von Koenig, codename Rex, whose real name was Rudolf Stallmann, was an agent of the French Intelligence Bureau before and during the Second World War. His size and stature were hardly what one would associate with a spy: Rex was huge, both in height and girth, and this, coupled with his blunt speech and chequered past, made him a wholly intimidating individual. Though he was a German, Rex lived in Paris and went by a French variation of his wife’s name – Lemoine. He worked for the French Intelligence Bureau for approximately 20 years, despite having been previously expelled from France on suspicion of being a German spy, and during this time he became the main contact of our second game-changing German, Hans-Thilo Schmidt.
Schidmt, aka H.E. (Asché), unlike his recruiter, was not in the direct employment of the French Intelligence Bureau. He was more what you might call a freelancer, doing X amount of work for Y amount of payment, whenever it was available. His ‘real’ employment was as a civil servant at the German Armed Forces’ Cipher Office, a position obtained for him by his brother, General Rudolf Schmidt [who was at the time a lieutenant colonel], one of Hitler’s favourite generals.
H.E was responsible for the analysis of the decoded intelligence captured by the German military from intercepted messages in Western Europe – spying on the spies, as it were. This put him in a prime position to be of use to the Allied Forces, for Schmidt was no fan of the Nazi Party. So, when the Enigma machine was introduced for use in the German air force in 1933 (having been introduced to the German navy in 1926 and the German army in 1928), Schmidt wrote to the French Intelligence Bureau and offered to supply them with classified information about it. Leaping at the opportunity, the Bureau agreed, and put him in contact with Rex.
It was a long and fruitful relationship. Schmidt copied, memorised and stole vital plans and ‘keys’ (date-dependent code sheets used by those operating the Enigma) from the German Cipher Office, and exploited his brother’s position in the army to discover military plans and leak them to the French. Rex responded with envelopes full of cash and the promise of more to come – if H.E. could continue to deliver the goods, which he invariably did, much to the chagrin of the German Cipher Office.
I don't get the calculation.
If you multiply the numbers: 17.576 x 60 x 676 x 150.738.274.937.250, you doesn't end up with 158 million million million or something near. You end up with: 107.458.687.327.250.619.360.000. How come it says here, that the calculations result is approx 158 million million million?
You dont include the "676"
Because the 676 is part of the 17,576, it isn't directly relevant in the final equation because you have already considered it, when you do: 17567*60*1.5*10^14 you get an answer of around 1.58*10^20
If the 676 factor is already considered, exactly how do the ring settings alter the overall number? There are 17,576 possible starting positions.
You don't actually take into
You don't actually take into account the 676 notch positions. They don't affect the number of permutations in the machine.
Notch settings should be included in the key length
Ignoring the 676 factor of the notch settings ignores the fact that the notches changes the rotor setting at some point in the message. So the 17,576 rotor settings can change after the first character of the message and must change by the 26th character. These changes are additions to the key length, when viewed over the entire message. That means that for a message length of 1 character, the key length is indeed 1.58 X 10^20, but for a real message longer than 1 character, the key length would be 1.07 X 10^23. The fact that the movement of the rotors is regular (like an odometer) makes the cryptoanalysis easier but does not reduce the factor of 676.
Each of 5 rotors may be chosen for the 3 rotor slots. Each rotor creates a permutation of the code. They would have been smart not to have any of the 5 rotor permutations be commlutable with any other, so for choices for first 3 slots one gets (all in agreement with this web site):
Then obvious settings of the 26 position rotors:
Now plug board: Apparently from pictures they didn't use jumpers blocks, so the plugs must indeed have internal switches so that a position without a plug shorts through from output to input. Each cable enacts a swap, but all the 10 cables are identical. Likewise swapping ends of the cables produces an identical results.
26*25/2 * 24*23/2 * 22*21/2 * . * 10*9/2 * 8*7/2 / 10! =
(26!/6!)/(10!*2^10) = 158.962555217826 million million million ish, call it "159" like in the movie! (PS: Not one scene of The Imitation Game came from the book, not one thing actually happened. Still I think that the decoder wheels bore some vague relationship to the "bombs" construction and is useful for thought. Successive columns would be successive input/rotor positions, and rows correspond to rotors all tree searched. Needs more for searching the plugboard settings than was shown in the movie. At least I'm making some progress in understanding this now.)
Now the 26*26 additional ring settings are not "accounted for" in any other calculation. They do truly establish another multiplier of settins positions. HOWEVER the decoding will on average go 13 characters before a "notch" kicks the 2nd wheel over, so one could see if there was an appearance of a recognizable word most likely. Thus these don't have to be searched for as intently as a fractional word or phrase can lead to decoding the notch or ring positions later as the first breakpoint into unintelligibility. Thus leaving this out is just a convention.
Also note that there are actually more possible plug board settings because the code sheets can indicate that a cable is not used, so one actually has 10 cables, 9 cables, 8 cables, etc. They probably would not go too far down.
This calculation is very long so if you we’re to work it out in your head or you didn’t have a choice then this would take forever and it would leave an incorrect answer
Enigma code breaking
We all know that the English invented everything but I read years ago that the Enigma code was first broken by a Polish person who passed it on to French intelligence who in turn passed it on to the English.
This detracts nothing from Turings achievements.
As an interesting aside, Turing had a colleague and they experimented with robots .
When this colleague retired he thought it would be interesting to look at the earlier models which were that simple anybody could build one.
But, he had no chance, all was classified.
Enigma code breaking
Certainly a credit should be given to Polish mathematicians who for the first time worked out the secret of Enigma. These were: Marian Rejewski, Jerzy Rozycki and Henryk Zygalski. In 1932 they already established inner rotors wiring which was probably one of the greatest break trough steps in decrypting messages. The also reconstructed prototype of Enigma itself and designed electromechanical machine called by them "Bomby" to find the keys to daily messages decryptions. Alan Turing did not design first computer. He worked on improved device the "Bomby" which later was further improved by American engineers. Polish Cypher Bureau team gave all the secrets about Enigma machine, the "Bomby" design and other related information to the British crypto-analysts already in July of 1939.
Turing and robots
Modern robotics is a diverse subject.
Part is just mechanics, many industrial robots work without any "artificial intelligence" (AI) like programming. But others distinctly combine AI (which can be independent of any robotic mechanism) and the mechanisms, such as visual analylsis for feedback. These are all of course based upon the development of the general purpose computing devices--for which Turing did make significant early contributions. In later years those developing ideas for computers and Turing differed on approaches and computer developers ignored turing's later ideas, but they certainly were part of the original foundations.
All of that was from the unclassified path from Turing's work.
Interestingly, relating to code breaking, some of my work and others on search methods for puzzle solving in AI could have been independently discovered back then and built into the hard-wired code breaking machines that essentially implemented a tree search for settings to match message fragments.
Error in Design of the Enigma Machine
It is widely agreed that the design of the rotor and wiring system in the enigma resulted in the not so irrelevant error that a letter could not be coded into itself and hence gave a great help in using cribs.
However I thought that the plugboard would eradicate most of this error or perhaps I do not understand it correctly.
As an example assume A is connected on the plugboard to B. Now we know that B will be coded to some letter other than B itself. I assume it could be coded to A and hence pressing key A would light up A.
I would love to know the answer to this.
When you connect B to A, you also connect A to B! Which means that if you enter A, your letter turns to B, and the letter that comes back can be anything but B but the only way to get an A as a result is if the letter going through the plugboard is a B! Which means that by extension, you cannot get A in return.
Don't Forget the 6 Unpaired Letters
According to this article, there are only 10 cords while there are 13 pairs of letters. That leaves 3 pairs or 6 letters whose positions haven't changed. If 'A' was one of those 6, pressing 'A' would indeed return 'A'.
My Previous Post is Incorrect
I didn't fully understand how the Enigma machine worked when I made my last statement and still don't, but I understand it a little better now and realize that when a letter is typed, you definitely won't get the same letter back. The reflector (not mentioned in this article) makes sure of that.
Pairs of letters in plugboard
OK, now I am thinking as an EE, about design of the plugboard. Clearly one of the pair designated for each letter is the output. And the other is the fed back input to the next part of the machine. This would match up to the exactly 26 pairs (52 total) jacks.
First, how could some of the jacks remain unconnected? If they remained unconnected, then their output side would go nowhere! It would not be left as its own code, it woud produce no code at all! Those banana jacks were not like our complex headphone jacks that have an inner switch--this is very simple hardware, appears to be nothing more than a plugboard of simple banana jacks in pairs.
(AND the logic requires that the jacks have outputs as well as inputs--otherwise how can they possibly map one letter to another at all--only by one letter's output mapping by a wire to another letter's input. Thus perfectly sensible 26 outputs, 26 inputs, exactly the 52 jacks on the board.)
Those look like ordinary banana jacks--I have many in my shop, a modern caryover from a bygone day. In fact they look like the paired banana jacks that I have many of, so paired cables could be used for ease of connection--just they constrain one end of the pair to go to the other end of the pair. And would of course swap--else connecting out to out, in to in, not working. Thus forming a swapping of the letter pair! Still could use 26 individual banana cables to map any letter to any letter.
This logic implies that there would be 26 wires total within all cables and jumper plugs as I wil discuss. (Not 10, not 13--though they could be paired cables for ease of connection in which case there are 13 double wire cables still equivalent to 26 wires just constrained in positions. There could even be 10 paired cables and 6 jumper plugs so 10 pairs swap letters as discussed, and then 6 jumpers mapped to the same letter--but this could also be generalized by 26 individual double-banana cables. Jumping the top row to the same letter's bottom row would map letter to itself.) The specifics could be a convention of how the cables were constructed as paired cables, and 10 paired cables and 6 jumper plugs would fill all positions and swap letters as discussed for exactly 10 pairs. If the "10" was derived from loosing 3 paired wires and there were no jumper plugs around, then the machine would not work! Is the "10" derived from coding sheet?
This might even make sense. The 6 jumper plugs used so that not all letters are remapped, thus NOT allowing codebreaking to assume no letter maps to itself. 10 paired cables to ease the operator connection method. (All reduced from the possability of any permutation mapping of 26 letters if 26 individual cables were provided.) 13 paired cables and no jumper cables would assure no character maps to itself, but allows any letter to be swapped with another and the next swap reduced by 2 recursively until all letters mapped.
Can't immediately figure a factorial notation, but 25*23*21*. *3*1 = 7.90585 * 10^12 ish combinations with 13 paired cables.
10 cables: 25*23*21*. *9*7=527.0569 * 10^9 ish combinations.
Pairs of letters in plugboard
You asked. "how could some of the jacks remain unconnected? If they remained unconnected, then their output side would go nowhere! It would not be left as its own code, it would produce no code at all!
I believe that "unjumpered" letter jacks, are connected to themselves, mechanically. Plugging in a pair of banana plug, breaks the "self connection" and allows for the input letter, say, A, to become, say, "T". If a letter jack is unjumpered, then pressing "A" results in "A" being fed into the static wheel. Also, if the output is "A", then the plugboard passes "A" to the lightboard. At least this is my thoughts on it.
Yes, external jumpers were not needed because all connectors were internally connected behind the plugboard. That was the default. Plugging in a cable mechanically disconnected that part of the circuit (with a simple lever mechanism) and redirected the flow of electricity through the cable. So all letters had a complete circuit whether there was a cable plugged in or not.