The Unseen Hero of Midway: How a Secretarial Slip Changed the Course of History
In the summer of 1942, the tides of war were shifting. The Pacific was a battleground unlike any other, with naval forces maneuvering through vast stretches of ocean, making decisive moves that would determine the fate of nations.
However, in the midst of this monumental conflict, one key moment that changed the course of the war was not driven by admirals or generals, but by an unlikely figure working behind the scenes, someone whose name has remained mostly forgotten.
This is the story of Margaret Howard, a 24-year-old typist whose attention to detail led to the unraveling of Japan’s seemingly unbreakable naval code, JN25, and helped turn the tide of World War II.
It began in 1941, after the attack on Pearl Harbor. The U.S. Navy was in full crisis mode, racing to understand how their enemy was able to outmaneuver them so effectively.
What was behind Japan’s swift strikes? How could the U.S. know the next move? The answer lay in a code—a cipher—used by the Imperial Japanese Navy.
Known as JN25, this was no ordinary code. It was a complex and seemingly unbreakable system, a cipher made of numbers that shifted constantly, leaving U.S. cryptographers scrambling for answers.

While mathematicians, engineers, and cryptanalysts toiled in the war rooms of Honolulu, racing to break JN25, Margaret Howard, a seemingly ordinary clerical assistant, sat at her typewriter transcribing intercepted Japanese communications.
She wasn’t tasked with cracking the code, but her sharp mind and a keen eye for repetition would soon make her an unknowing hero.
The Challenge: JN25’s Elusive Code
JN25 was a cipher built to withstand scrutiny. It consisted of long strings of five-digit groups that were scrambled by a changing additive key.
Even if the Americans managed to capture a codebook, the key was frequently shifted, ensuring the messages remained unreadable. Analysts worked around the clock, but the results were meager at best.
Admiral Chester W. Nimitz, the commander of the Pacific Fleet, had no choice but to fight blind, with American ships being hit by Japan’s carriers seemingly without warning. The pressure was building as every day without a breakthrough meant more lost convoys, more lives at stake.
In the crowded, smoke-filled cryptographic rooms of Honolulu, Margaret Howard worked tirelessly, typing out intercepted messages, transferring numbers onto clean sheets for further analysis.
It was supposed to be a menial task—one that didn’t require much thought beyond accuracy. However, Margaret saw something others didn’t.
A Small Mistake, A Big Break
One fateful day, while typing out a string of numbers, Margaret noticed a subtle pattern. Certain groups of numbers repeated at intervals—slightly different each time, but unmistakably familiar.
It was a tiny detail that most others missed, as they were too focused on the complex, ever-changing encryption. Margaret, however, had an innate sensitivity to numbers, a skill honed from her days as a bookkeeper in Chicago before the war.
She had spent years recognizing patterns and repetition, which is why she found it so strange when the same five-digit sequences kept reappearing in nearly identical form. This was no accident.
Her typewriter ribbon, frayed and well-worn from countless hours of use, had captured ghostly traces of the repeated sequences.
When she replaced the ribbon one night, she noticed something that would alter the course of history: the same group of numbers appeared twice in close proximity, revealing a flaw in the Japanese system.
Though this discovery might have seemed insignificant to others, to Margaret, it was more than just a coincidence. It was a flaw in the code. Japan’s system, she realized, was not as perfect as they believed.
The very randomness they thought was the key to their invulnerability had been compromised by a human error—a repeated sequence in the cipher that could be exploited.
Margaret didn’t know the full scope of what she had found, but she felt something important in her gut. She had been given a key to unlock something bigger.
But who would listen to a young typist? She had no formal training in cryptography, no standing in the military, and certainly no expectation that anyone would care about her small discovery.
But the tides of history were already turning, and fate would soon give her the recognition she didn’t seek.
The Turning Point: A World Unveiled
After months of agonizing over a code that refused to yield, Margaret’s discovery became the crack in the armor.
Lieutenant Davis, a younger officer with an open mind, took her findings seriously and presented them to Commander Joseph Rochefort, the eccentric head of the cryptographic unit.
Rochefort, who had spent months despairing over the enigma that was JN25, saw the breakthrough immediately. He realized that Margaret’s simple observation of a broken key had unlocked the Japanese military’s most crucial secrets.
What followed was a massive collective effort to decode the intercepted Japanese messages, now that they had cracked the code’s flaw.
Margaret’s discovery helped reconstruct the Japanese codebook, and the previously incomprehensible strings of numbers began to form readable messages.
Among the encrypted transmissions was a series of orders from the Imperial Japanese Navy referring to the operation AF, a cryptic reference that had confounded analysts for months.
Margaret’s small discovery helped decode the message: AF was Midway, America’s last line of defense in the Pacific.
Now armed with this information, the U.S. Navy was able to prepare for the Battle of Midway, a decisive clash that would mark a turning point in the Pacific War.
On June 4th, 1942, American forces ambushed the Japanese fleet, sinking four of their largest carriers and effectively destroying Japan’s ability to wage offensive warfare in the Pacific.
The success of the battle was credited to intelligence—but not just to the efforts of generals and admirals. It was Margaret Howard’s unrecognized contribution, hidden behind the scenes, that had enabled the American forces to strike with precision.
The Silent Hero
For Margaret, however, the battle was over, but the silence around her work had just begun. Her name never appeared in any official records. There were no accolades, no medals, and no recognition from the Navy.
Margaret’s contributions were hidden in secrecy, buried beneath the layers of military protocol and wartime silence. When the battle was celebrated in the media, Margaret’s work was quietly erased.
It wasn’t until years later, long after the war was over, that Margaret’s role in the intelligence breakthrough was acknowledged—though not in the way she had hoped.
A historian eventually unearthed her name in a forgotten document and traced her back to the breakthrough that had helped turn the tide of the war.
But by then, Margaret had faded into obscurity, living a quiet life, far from the battlefield where her discovery had shifted the course of history.
Margaret Howard had cracked the code that Japan believed to be unbreakable. And it all started with a simple, unnoticed mistake—a tear in a typewriter ribbon that changed the world.
Her story is a testament to the power of attention to detail, perseverance, and the belief that sometimes, the smallest actions can turn the tide of history.
The world may have forgotten her name, but the significance of her discovery lives on, reminding us that heroes don’t always wear uniforms or carry weapons.
Sometimes, the most powerful people are those whose contributions are forgotten. The real story of Midway? It wasn’t just luck—it was Margaret’s determination to pay attention when no one else did.