Home / The Codex / 20th Century Wars

20th Century Wars

Polish Mathematicians Cracked Enigma First: The Gift Before War

On July 25, 1939, in a forest clearing near Pyry outside Warsaw, three Polish mathematicians gave away the most valuable secret in Europe. They had been reading German military communications for nearly seven years. In five weeks, German tanks would roll across their border, and everything they had built would be destroyed or scattered. So they handed it all to the British and French intelligence officers standing in front of them: their methods, their mathematics, their reconstructed Enigma machines, their specialized decryption equipment. The gift would help shorten World War II by an estimated two years. And for decades, almost nobody knew the Poles had done it first.

How Did Poland Break Enigma Without Ever Seeing One?

The answer begins with a single mathematician and an act of intellectual audacity. In late 1932, Marian Rejewski was a twenty-seven-year-old with a mathematics degree from Poznań University and additional studies at Göttingen. The Polish Cipher Bureau had recruited him specifically because the German Enigma machine had defeated every conventional cryptanalytic approach. The device used electromechanical rotors to scramble the alphabet through billions of possible configurations. Germany's military considered it unbreakable.

Rejewski had never seen an Enigma machine. What he had was a set of stolen documents—operating procedures and some keying tables obtained by French intelligence from a German traitor named Hans-Thilo Schmidt—and his own exceptional mathematical mind. Using group theory and permutation analysis, Rejewski worked backward from intercepted ciphertexts to deduce the internal wiring of the Enigma's rotors and reflector. He reconstructed the machine's logic without touching the hardware. It was, as historians have noted, one of the greatest achievements in the history of cryptanalysis.

By early 1933, Rejewski could read German military Enigma traffic. He was soon joined by two other mathematician-cryptologists: Jerzy Różycki and Henryk Zygalski. Together, working in the Polish General Staff's Cipher Bureau, they developed an array of techniques and machines to keep pace with German security improvements. When the Germans changed procedures, the Poles adapted. This continued for nearly seven years.

The Machines That Preceded Bletchley Park

Breaking Enigma was not a one-time feat; it required constant innovation. The Germans regularly changed their operating procedures, key settings, and eventually the machines themselves. Each change threatened to lock the Poles out permanently. Rejewski and his colleagues responded by building specialized equipment.

The most famous was the "bomba kryptologiczna"—the cryptologic bomb—an electromechanical device that could test Enigma key settings at unprecedented speed. Rejewski designed it in late 1938 after the Germans introduced new security protocols. The Polish bomba was the direct ancestor of the British Bombe that Alan Turing and Gordon Welchman would later develop at Bletchley Park. The British version was larger and more sophisticated, but its core concept came from Warsaw.

The Poles also built something equally remarkable: complete replica Enigma machines, constructed entirely from Rejewski's mathematical deductions. These "Polish Enigma doubles" were reverse-engineered without access to German originals—a feat that demonstrated the cryptologists' total understanding of the system they had penetrated.

Henryk Zygalski contributed another essential tool: perforated sheets that allowed analysts to identify rotor positions through a process of elimination. These "Zygalski sheets" remained useful even after the bomba became impractical due to German procedural changes. The Polish team was not merely reading messages; they were building an industrial-scale intelligence operation with equipment designed for the task.

Why Did Poland Give Away Its Greatest Secret?

By 1938, the situation had grown desperate. Germany's annexation of Austria and its aggressive posture toward Czechoslovakia made clear that war was coming. The Polish cryptologists were running out of time and resources. In December 1938, the Germans introduced two additional rotors to the Enigma system, expanding the possible configurations beyond what the Poles could handle with their existing bomba machines. Building enough new equipment to compensate was beyond Poland's means.

The Cipher Bureau made a decision that would alter history: they would share everything with France and Britain. For years, the Poles had kept their breakthrough secret, even from their allies. French intelligence had provided the initial German documents, but the French themselves had failed to exploit them. The British had made no progress at all. Now Poland would give both nations the keys to the kingdom.

The meeting took place at the Kabaty Woods near Pyry on July 25, 1939. British representatives included Alastair Denniston, head of the Government Code and Cypher School, and Dillwyn Knox, Britain's foremost cryptanalyst, who had spent years trying and failing to break Enigma. French intelligence sent Gustave Bertrand, who had originally obtained the Schmidt documents. The Poles demonstrated their methods, explained their mathematics, and gave each delegation a reconstructed Enigma machine along with documentation of their techniques.

Knox was reportedly stunned. He had been attempting to break Enigma through linguistic analysis and traditional methods. The Poles had approached it as a mathematical problem and solved it years earlier. According to accounts from those present, Knox asked Rejewski how the Poles had determined the Enigma rotor wirings. Rejewski's answer was simple: mathematics.

The Overlooked Foundation of Bletchley Park's Success

Five weeks after the Pyry meeting, Germany invaded Poland. The Cipher Bureau evacuated, then scattered. Rejewski, Różycki, and Zygalski escaped through Romania to France, where they continued cryptanalytic work until France fell in 1940. They eventually made their way to Britain, though they were never brought into Bletchley Park—a decision that remains controversial among historians. Różycki died when his ship was torpedoed in 1942. Rejewski survived the war but returned to Poland, where he lived in obscurity, his contributions officially unacknowledged until the 1970s.

Meanwhile, everything the Poles had given away flourished at Bletchley Park. The British Bombe, operational by 1940, was a direct descendant of Rejewski's design. The mathematical foundations the Poles had laid allowed Turing and his colleagues to extend the work rather than starting from scratch. The Ultra intelligence derived from Enigma decrypts influenced nearly every major Allied operation, from the Battle of the Atlantic to D-Day.

For decades, the standard narrative credited Bletchley Park alone. Wartime secrecy extended into peacetime silence. Britain did not declassify its Enigma-related records until the 1970s, and even then, the Polish contribution was often minimized or misunderstood. Popular accounts focused on Turing's genius—deserved, but incomplete without context. The Polish mathematicians had not merely provided a head start; they had provided the conceptual and mechanical framework that made everything else possible.

The story matters because it reframes what we think we know about one of the war's decisive intelligence advantages. The Poles did not simply help; they solved the core problem first, then gave their solution away when they knew their country was about to be destroyed. They chose to make their work survive even if they could not. That act of strategic generosity—handing years of secret labor to allies who had failed where they succeeded—is the overlooked variable in every story about breaking Enigma. Without the Pyry gift, there is no Bletchley Park triumph. The foundation was Polish. The timing was five weeks before the catastrophe.

Sources and Further Reading

Selected verified references used to guide this article.

← Back to The Codex