Table of Contents

Marian Rejewski: The Mathematician Who Decoded History

In the grand tapestry of the Second World War, woven with threads of heroism, sacrifice, and technological upheaval, some of the most critical stitches were made in complete silence, invisible to the world for decades. At the very heart of this secret history lies the figure of Marian Rejewski, a Polish mathematician whose quiet genius achieved what the world’s most powerful military intelligence agencies deemed impossible. He was not a general commanding armies or a statesman shaping treaties, but an intellectual titan who, armed with the abstract tools of permutation theory, dismantled the cryptographic fortress of Nazi Germany. Rejewski was the first person to break the military version of the Enigma Machine, the vaunted cipher device that encrypted the innermost secrets of the Third Reich. His story is not merely one of codebreaking; it is a profound journey from the lecture halls of Poznań to the clandestine nerve centers of European intelligence, a testament to how the elegant, seemingly esoteric world of pure mathematics could become the most potent weapon in the struggle for human freedom. This is the brief history of the man who turned abstract symbols into a key that would unlock victory.

The Forging of a Mind: From Partition to Poznań

The world into which Marian Rejewski was born on August 16, 1905, was one of fractured identity and simmering hope. His hometown of Bromberg, known to Poles as Bydgoszcz, lay within the German Empire, a consequence of the 18th-century partitions that had erased Poland from the map of Europe. He was born a subject of the Kaiser, yet raised in a fiercely Polish family, inheriting a dual consciousness that would prove invaluable. He was fluent in German, understanding the nuances of the language and culture of the power that occupied his homeland. This linguistic and cultural fluency was the soil in which his later analytical genius would grow. His generation was unique; they were the children of a nation that existed only in memory and aspiration, coming of age just as that dream was spectacularly rekindled.

A Nation Reborn, A Talent Awakened

The end of the First World War in 1918 was a cataclysm that redrew the world order. For Poles, it was a moment of resurrection. The Second Polish Republic was declared, and for the first time in 123 years, Poland was sovereign. This national rebirth created a fervent atmosphere of purpose and urgency. The new nation was fragile, wedged between two powerful and revanchist neighbors: a defeated but resentful Germany and a revolutionary Soviet Union. Survival depended not just on military strength, but on intelligence, on knowing the enemy's intentions before they could act. It was in this crucible of existential threat that the Polish military established one of the most advanced intelligence operations of its time: the Biuro Szyfrów (Cipher Bureau). Meanwhile, the young Rejewski was revealing himself to be a prodigy. He excelled in his studies, but his true passion was the pristine, logical world of mathematics. In 1923, he enrolled at Poznań University, a burgeoning center of mathematical thought located in a region that had been part of Germany for over a century. This geographical and historical fact was no coincidence; Poznań was a nexus, a place where Polish intellectual ambition met a deep, ingrained understanding of German systems and thinking. Rejewski immersed himself in the abstract beauty of statistics, probability, and, most fatefully, group theory—a branch of mathematics dealing with symmetry and abstract structures known as permutations. At the time, these subjects seemed to be the very definition of “pure” mathematics, existing in a platonic realm far removed from the grubby realities of espionage and war. Rejewski could not have known that he was, in fact, assembling the precise intellectual toolkit needed to confront the greatest cryptographic challenge in history.

The Secret Summons

In early 1929, as Rejewski was nearing the completion of his master's thesis, a strange and clandestine opportunity arose. A professor approached him and a select group of other brilliant, German-speaking mathematics students with a cryptic invitation. They were asked to enroll in a secret course on cryptology, the science of codes and ciphers. The course was organized by the Biuro Szyfrów. This was a revolutionary moment in the history of intelligence. For centuries, codebreaking had been the domain of linguists, classicists, and those with a knack for word puzzles. But the Polish General Staff, under the visionary leadership of men like Major Gwido Langer and Captain Maksymilian Ciężki, recognized a fundamental shift in the technological landscape. The future of secret communication lay not in pen-and-paper ciphers but in complex machines. To defeat a machine, they reasoned, one needed not a linguist, but a mind that could think like a machine—a mathematician. Rejewski and his two fellow students who would later form the core of the codebreaking unit, Jerzy Różycki and Henryk Zygalski, accepted the challenge. They were initiated into a hidden world, one where abstract equations had life-or-death consequences. After a brief academic stint at the University of Göttingen in Germany—where he perfected his German but felt intellectually unfulfilled—Rejewski returned to Poland and began working part-time for the Poznań branch of the Cipher Bureau in the summer of 1930. He and his colleagues spent their days deciphering low-level German naval communications, honing their skills on relatively simple ciphers. It was an apprenticeship, a training ground for the monumental task that lay ahead. In 1932, the Poznań branch was dissolved, and the three young mathematicians were summoned to the heart of the operation in Warsaw. There, in a quiet office in the Saxon Palace, they were finally shown the true enemy: the Enigma Machine.

The Enigma of Enigma: A Symphony of Gears and Wires

The Enigma Machine was more than just a device; it was a statement of technological and intellectual superiority. To its German designers and military operators, it was unknackbar—unbreakable. From a technological history perspective, it represented the pinnacle of electromechanical cryptography. Outwardly, it resembled a bulky typewriter. An operator would press a key, and a complex series of electrical pathways would cause a different letter to light up on a lampboard, indicating the encrypted character. Its security did not rely on a single secret, but on a staggering, multi-layered system of variability.

The Mechanical Hydra

To understand Rejewski's achievement, one must first appreciate the beast he confronted. The military Enigma's security rested on three core components that could be configured in an astronomical number of ways:

Combined, the number of possible daily settings for the Enigma was colossal—a number so vast that trying to check every one by hand would take more time than the age of the universe. To the Germans, this was not a code; it was a mathematical fortress.

The First Crack: A Betrayal and a Breakthrough

The Poles, however, had an ace up their sleeve. It was not a mathematical formula but a human one: espionage. A disaffected German bureaucrat named Hans-Thilo Schmidt, working in the German army's cipher office, began selling secrets to French intelligence under the codename “Asché.” The French, brilliant in espionage but lacking the mathematical firepower to exploit the intelligence, shared it with their Polish allies. In late 1931 and 1932, Schmidt provided two crucial pieces of information:

  1. An operating manual that described the machine's general function.
  2. Key sheets for September and October 1932, containing the daily settings.

This was the equivalent of being given the keys to the fortress, but only for two months, and without a map of the interior. The most vital secret—the internal wiring of the rotors—remained unknown. Other cryptanalysts, including the British, had received similar intelligence but had concluded that it was insufficient to break the system. This is where Rejewski's genius came to the fore. The Biuro Szyfrów had purchased a commercial Enigma, but it lacked the military plugboard and had different rotor wiring. They knew what the machine did, but not how it did it. Rejewski sequestered himself. Armed with the priceless key sheets and the intercepted encrypted messages from those months, he embarked on a heroic act of intellectual reverse-engineering. He knew the plaintext could not be guessed. The only thing he could attack was the system itself. His revolutionary insight was to ignore the letters and focus on the underlying mathematical structure. He viewed the Enigma not as a linguistic device, but as a permutation-generating machine. He set up a series of equations with multiple unknowns, representing the cryptic pathways of the current through the rotors. As he later recalled, “The solution of this system of equations was the first, and also the greatest, difficulty I had to overcome.” Using the elegant logic of group theory, a field his German counterparts had completely overlooked, he teased out the patterns from the chaos. By late 1932, in a stunning intellectual feat, he had solved the equations. He had deduced the complete internal wiring of the first three rotors. The fortress had been breached. The Poles could now build their own exact replicas of the German military Enigma.

Forging the Sword: The Bomba and the Cyclometer

Solving the rotor wiring was a monumental victory, but it was only the first battle. The war was against the daily key settings, which the Germans changed every 24 hours at midnight. Finding these settings was a frantic daily race against time. The initial German procedure, born of a mixture of discipline and carelessness, contained a fatal flaw. To ensure a message was received correctly, the operator would choose a three-letter message key (e.g., 'A', 'B', 'C') and encrypt it twice at the start of the message. Due to the rotor movement, the encryption of 'A', 'B', 'C' would be different the first and second time. For example, 'ABCABC' might become 'PKPXYZ'. Rejewski realized that this repetition created a relationship between the 1st and 4th letters, the 2nd and 5th, and the 3rd and 6th encrypted letters. This relationship—this pattern of permutations—depended only on the initial rotor settings, not the plugboard settings. He had found the machine's Achilles' heel.

The Catalog of Patterns: The Cyclometer

To exploit this, Rejewski and his team embarked on another herculean task. They created a card catalog of patterns, a device they called the Cyclometer. It consisted of two Enigma rotors linked together and was used to map out the complete “characteristic” of every single one of the 17,576 possible rotor positions. This catalog took over a year to complete and filled volumes. Every day, when the first messages came in, the Poles would observe the patterns in the repeated message keys, go to their catalog, and find the entry that matched. This would give them the rotor position for the day. From there, they could work out the rest of the key, including the plugboard settings, with a mix of logic and intuition. For several years, from 1933 to 1938, the Polish Cipher Bureau was reading the Third Reich’s mail. They had a direct line into the mind of the nascent Nazi regime as it rearmed, annexed Austria, and prepared for war.

The Race Against the Machine: The Bomba Kryptologiczna

In September 1938, the Germans, sensing a potential weakness, changed their encryption procedure. They eliminated the most obvious repetition in the message key indicator, rendering the Cyclometer and its card catalog obsolete overnight. The dragon had grown a new, tougher hide. It was a devastating blow. The Poles were effectively flying blind again. Once more, it was Rejewski who engineered the response. He conceived of an entirely new device, an electromechanical aggregator of his mathematical theories. It was a machine built to fight a machine. He called it the Bomba Kryptologiczna (Cryptologic Bomb), a name likely inspired by the ticking sound it made as it worked. The Bomba was essentially six Polish-built Enigma replicas wired together, running in parallel. It was designed to churn through all possible rotor settings, testing them against the patterns still found in the daily encrypted traffic. When it found a setting that did not result in a logical contradiction, it would stop, indicating a potential solution. Six Bombas were built, and by early 1939, they were working. The Poles were back in the game, able to find the daily keys in about two hours. This machine was the direct conceptual ancestor of the much larger and more famous British Bombe developed by Alan Turing and Gordon Welchman at Bletchley Park. But the race was becoming unsustainable. In December 1938, the Germans introduced two new rotors, increasing the number of possible rotor orders from 6 to 60. To keep up, the Poles would have needed to build ten times as many Bombas, a cost their strained military budget could not bear. Time was running out, and the shadow of war was lengthening over Europe.

The Torch is Passed: A Meeting in the Woods

By the summer of 1939, the Polish leadership knew that war was not just possible, but imminent. Their lonely, heroic struggle against Enigma had yielded priceless intelligence, but they could not continue it alone. In a moment of extraordinary foresight and strategic sacrifice, they decided to share their secrets with their allies. On July 25, 1939, in a secret intelligence facility in the Pyry forest south of Warsaw, top Polish intelligence officers met with their British and French counterparts, including Alastair Denniston and Dilly Knox from Britain's Government Code and Cypher School (GC&CS). For years, the British and French had been stymied by Enigma. They considered it unbreakable. What happened in that meeting must have felt like a revelation from another world. The Poles calmly laid out everything: Rejewski's mathematical theorems, the deduced rotor wirings, Zygalski's perforated sheets (another method for finding keys), and detailed blueprints for the Bomba. To cap it all off, they presented each delegation with their own Polish-reconstructed Enigma Machine. It was, as the British official historian later wrote, the “one of the greatest gifts one nation has ever given another.” They handed over not just a solution, but an entire intellectual framework, a revolutionary methodology for attacking machine ciphers. Five weeks later, on September 1, 1939, Germany invaded Poland. The Second World War had begun. The work of the Biuro Szyfrów in Warsaw was over, but the torch they had lit in the Pyry forest was about to ignite a fire at Bletchley Park.

Exile and Obscurity: The Shadow of War

As the German Blitzkrieg tore through Poland, the core personnel of the Cipher Bureau, including Rejewski, Różycki, and Zygalski, executed a planned evacuation. Their escape was a desperate, chaotic flight eastward, just ahead of the advancing German army, carrying the most sensitive intelligence documents with them. They crossed into Romania, where they were briefly interned before making their way to France. In Paris, they re-established their unit under French command at a facility codenamed “PC Bruno” just outside the city. For months, they resumed their work, successfully breaking German Enigma traffic and providing vital intelligence during the “Phoney War.” But their respite was short-lived. In May 1940, Germany invaded France. Once again, the codebreakers were forced to flee, escaping south just ahead of the collapse of the French army. They regrouped in the unoccupied Vichy zone, at a clandestine center codenamed “Cadix.” From this precarious perch, they continued their work, a lonely island of resistance in a collaborationist state. It was during this period that tragedy struck. In January 1942, Jerzy Różycki, the youngest of the trio, died when his passenger ship sank in the Mediterranean. The final dispersal came in November 1942 when Germany invaded the Vichy zone. The team scattered. Rejewski and Zygalski embarked on a perilous journey, aiming for Britain. They crossed the Pyrenees into Spain, only to be arrested and imprisoned by Franco's police. After months in squalid Spanish prisons, they were finally released and made their way to Britain in the summer of 1943. They arrived at the doorstep of the organization whose success they had made possible: Bletchley Park. But what should have been a triumphant homecoming was instead a descent into anticlimax and obscurity. The British operation, now a vast industrial-scale codebreaking factory employing thousands, was wary of the Polish newcomers. Fearing they might have been compromised during their time in Vichy France or Spain, and perhaps unwilling to fully share the glory, the British intelligence establishment sidelined the very men who had laid the foundation of their work. Rejewski, the man who first solved the Enigma's wiring, was assigned to a minor unit breaking low-level German SS hand ciphers. He was never told the full story of the Ultra intelligence program or the massive impact his initial breakthroughs had enabled. The Polish Prometheus was kept far from the fire he had stolen.

The Long Silence: A Hero in Anonymity

When the war ended in 1945, Rejewski was a man adrift. Poland, his beloved homeland, had been liberated from one tyranny only to be subsumed by another under Soviet domination. Despite the dangers, his heart was with his family. In 1946, he made the difficult decision to return. He was met with a changed world. The new communist regime was deeply suspicious of anyone with ties to the pre-war Polish government and Western intelligence. To survive, Rejewski had to disappear into the mundane. The man whose mind had wrestled with the most complex cryptographic system on Earth became a manager at a cable manufacturing company, a quiet accountant living in a grey, post-war landscape. He lived a life of profound anonymity, his world-changing secret locked away. For nearly thirty years, history was written without him. The celebrated narratives of the war credited the breaking of Enigma solely to the British at Bletchley Park. The Polish origins of the breakthrough were forgotten, a historical footnote erased by the political realities of the Cold War. Rejewski kept his silence, knowing that speaking out could endanger himself and his family. It was not until the 1970s that the truth began to emerge. The publication of memoirs by figures like Gustave Bertrand, his former French commander, and the declassification of British war records began to shed light on the story's true beginnings. In 1973, the dam of secrecy finally broke. Rejewski, now a retired man in his late sixties, stepped out of the shadows. He began writing his memoirs and academic papers, detailing with mathematical precision the methods he had used nearly half a century earlier. He finally told his story, not for fame, but for the historical record. Marian Rejewski died on February 13, 1980. His legacy, once hidden, is now undeniable. His work did not just contribute to the Allied victory; it fundamentally enabled it. The intelligence derived from Enigma decrypts—codenamed Ultra—was instrumental in the Battle of the Atlantic, the North African campaign, and the Normandy landings. Historians estimate that Rejewski's breakthrough, and the vast intelligence operation it spawned, shortened the war by at least two years, saving millions of lives. More than that, his application of pure mathematics to a mechanical problem was a conceptual leap that prefigured the digital age. His work stands as a landmark in the history of technology and a powerful testament to the fact that the greatest force for change is often not the clash of armies, but the quiet, persistent brilliance of a single human mind.