Skip to content
MilitaryHistoryNow.com
Menu
  • About MHN
  • Write for MHN
  • Advertise on MHN
  • We Respect Copyright
  • Our Privacy Policy
Menu

Marian Rejewski – Meet the Polish Cryptographer Who Cracked Germany’s Top-Secret Enigma Code Seven Years Before WW2

Posted on 4 October, 201828 October, 2026 by MilitaryHistoryNow.com
British and French intelligence agencies knew all about Germany’s Enigma code years before the outbreak of World War Two, but they both considered it virtually unbreakable. One trailblazing Polish cryptographer named Marian Rejewski proved them wrong. Years later, the Allies would build on the young mathematician’s work to uncover Nazi Germany’s most vital military secrets. (Image source: WikiCommons)

“Although Rejewski cracked the code for the first time in 1932, this was only the beginning of a series of Polish intelligence coups.”

By Eilidh McGinness

IT WAS 1928 when Germany first began using Enigma code machines. At the time, the electro-mechanical rotor cipher system was considered invincible. Even before the Nazis took power in 1933, British, French and Polish secret services grew ever more concerned by the number of coded intercepts from Germany that were indecipherable. Eventually, the British and French abandoned their decoding efforts out of sheer frustration, convinced that no one could crack this new Enigma code. Poland refused to give up. Sandwiched between an increasingly militarizing Germany in the West and the Soviets to the east, the country did not have that luxury.

So, Warsaw turned to a pair of agents in its top-secret cypher bureau to do what seemed to be the impossible – solve the riddle of the Enigma.

Lieutenant Colonel Karol Langor and Major Maksymilian Ciężki, turned to a team of mathematicians and set about training them in the art and science of cryptography. Up to that point, codebreakers tended to be linguists or even classicists.

Langor and Ciężki recruited directly from Poznan University. The school was situated in a section of Poland that until 1918 was still part of Germany; the local population spoke German fluently. Soon, 26 of the university’s best mathematics students were enrolled in a special top-secret codebreaking course. Only six completed the training. At the top of the class were Henryk Zygalski, Jerzy Rozycki and Marian Rejewski. All began working for the Biuro Szyfrów or Cypher Bureau in Warsaw in 1932.

Marian Rejewski. (Image source: WikiCommons)

Rejewski who had demonstrated a particular aptitude for code-breaking was tasked, on his own, in secret with solving Enigma. It took him just six weeks to crack it, despite the fact that there were literally trillions of possible coding settings for an Enigma machine.

To successfully decode a message, two machines constructed with the exact same internal wiring were needed and each had to be programmed with the same key settings and rotor positions.

Although Rejewski’s feat elevated him to the obscure mantle of greatest cryptologist of all time, he did have some resources to help guide him.

French intelligence had obtained a copies of Enigma instruction manuals and code books. These were provided to the Polish Cypher Bureau. Rejewski also claimed to know how to ‘think like a German,’ something he learned growing up in a part of Poland that was formerly part of the Fatherland. The 27-year-old mathematician also credited his knowledge of Permutations, which enabled him to develop equations to work out the internal wirings of the Enigma machine and from there methods of ascertaining the daily settings.

An early model three-rotor Enigma terminal. (Image source: Alessandro Nassiri via Wikimedia Commons/Creative Commons)

Although Rejewski cracked the code for the first time in 1932, this was only the beginning of a series of Polish intelligence coups. Using Rejewski’s instructions, the Warsaw electronics firm AVA began top-secretly producing components for copycat Enigma machines. The parts were assembled clandestinely at Cypher Bureau headquarters to ensure the utmost secrecy.  Once constructed, the machines were used by the Polish codebreakers to decode German messages.

With the rise of the Nazis, the German military continued to adapt the Enigma system in order to preserve its invincibility. Poland’s Cypher Bureau continued to keep pace with every new development. Methods were even devised to accelerate the decoding work. Rejewski invented a cyclometer, a machine that was used to prepare a catalogue of the characteristics of each possible rotor setting.  There were 17,576 possible settings for each of the six possible rotor orders.

Long before British and American intelligence sections had their own Bombe machines, Rejewski was working deep inside Poland’s Cyber Bureau on his own version of the early computer system. (Image source: WikiCommons)

Finally, Rejewski invented the Bombe machine, the first electro mechanical decrypting device. Consisting of six networked, Enigma terminals, the system could descramble the German daily code settings in under two hours.

By December 1938, the Germans introduced a next generation Enigma machine. The new models increased the number of interchangeable rotors from three to five, which meant that cracking the code would require a sizable increase in resources. The Cypher Bureau team was a small one with a limited budget.

Poland’s code team contacted its British and French counterparts seeking assistance, but upon discovering that the Western Allies had made no advances in breaking the Enigma on their own, Warsaw balked at revealing its top-secret breakthroughs. If German spies had moles in those friendly intelligence agencies, Berlin would soon learn of the Enigma system’s vulnerability and would switch to another code altogether.

German troops parade past Warsaw’s Saxon Palace, the location where, unbeknownst to Berlin, Polish intelligence had secretly cracked the Enigma code seven years earlier. (Image source: WikiCommons)

But by the summer of 1939, war with Germany appeared inevitable and Warsaw had no choice but to share its knowledge of the Enigma code.

On July 26, just six weeks before the German invasion, Poland’s codebreakers revealed their Enigma work to French and British intelligence. The Allies were astounded by the Cypher Bureau’s progress.

Two weeks before the war, a fully-functional Enigma machine was personally delivered to Colonel Stewart Menzies, head of Britain’s MI6. The hand-off took place at the Victoria Railway Station in London.

Two weeks later, Hitler’s Panzers were rolling into Poland. The Cypher Bureau, including Rejewski, packed up its entire operation and fled south into Romania, though it was not their end of the group’s work.

Inspired by Poland’s achievements, Britain’s Bletchely Park set out to recruit its own mathematicians for codebreaking. The rest is history.

Eilidh McGinness is the author of The Cypher Bureau. Born and raised in the Highlands of Scotland, she studied law at Aberdeen University and specialized in criminal defence for 12 years. She has always had a passion for history and is inspired in her writing by the extraordinary achievements of ordinary people. She lives in South West France. Visit her online at www.eilidhmcginness.com or follow her on Twitter @eilidhmcginness

Help spread the word. Share this article with your friends.

  • Email a link to a friend (Opens in new window) Email
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Facebook (Opens in new window) Facebook
  • Share on Reddit (Opens in new window) Reddit
  • Share on X (Opens in new window) X
  • Share on LinkedIn (Opens in new window) LinkedIn

Like this:

Like Loading…

Related

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

MHN Welcomes Your Donations

WE DON'T HAVE A PAYWALL; our content is free for everyone. But if you like what we're doing here, you can still support us. Click the button below to donate. Thank you for your support.
Buy Me a Coffee

Subscribe to the MHN Newsletter

Hey, Authors & Publishers...
MHN's more than 200,000 social media followers want to know about your latest military history books. We can help spread the word.

Bylined Articles • Twitter Promotions • Author Interviews • Reviews

E-mail us today!

From the MHN Archives

  • The Final Blow – Was it American A-Bombs or the Soviet Declaration of War that Forced Tokyo to Surrender in 1945?The Final Blow – Was it American A-Bombs or the Soviet Declaration of War that Forced Tokyo to Surrender in 1945?
    “The historical evidence indicates that it was the Soviet onslaught in Manchuria which pushed the Japanese military and political elite into the recognition that there was no alternative to ‘enduring the unendurable.’”...

Top Posts & Pages

  • “Soldiers of the Fifth!” — Meet the Regiment Famously Sent to Stop Napoleon’s Return from Exile
    “Soldiers of the Fifth!” — Meet the Regiment Famously Sent to Stop Napoleon’s Return from Exile
  • The Atlantic Wall – 11 Key Facts About the Nazi Defences at Normandy
    The Atlantic Wall – 11 Key Facts About the Nazi Defences at Normandy
  • Battlefield Stalingrad — Four Maps That Tell the Story of World War Two’s Pivotal Struggle
    Battlefield Stalingrad — Four Maps That Tell the Story of World War Two’s Pivotal Struggle
  • Operation Sparrow — How Three American Commandos Engineered Their Own Capture to Save the Normandy Invasion
    Operation Sparrow — How Three American Commandos Engineered Their Own Capture to Save the Normandy Invasion
  • From the Battlefield to the Mailbox — 10 U.S. Postage Stamps That Commemorate Military History
    From the Battlefield to the Mailbox — 10 U.S. Postage Stamps That Commemorate Military History

© COPYRIGHT MilitaryHistoryNow.com

Unauthorized use and/or duplication of any material on this site without express and written permission from the author and/or owner is strictly prohibited.

©2026 MilitaryHistoryNow.com | Design: Newspaperly WordPress Theme
Loading Comments...
%d