Transcripts: Codes (2001)
Episode: MME00177: Codes
Downloads: Whisper Subtitles (SRT) ⬇
Prose Reading View
Caesar altered his alphabet. The Nazis had enigma. Computers and digital encryption. The attempts to make and break these secret methods of scrambled communication have changed the course of history. Now, Codes on Modern Marvels. Manila, the Philippines, January 6, 1995. When police responded to an apartment fire, they found a Toshiba laptop amid a batch of chemicals and bomb-making materials. An open file on the laptop revealed a plan to simultaneously bomb 12 U.S. airliners over the Pacific. The potential death toll, 4,000 passengers.
several other files used encryption software that scrambled the writings in secret code the Philippine police decoded some of the files using a special computer program and uncovered a list of bomb making recipes all the evidence pointed to the most hunted terrorist in the world Ramzi Yousef wanted for his involvement in the World Trade Center bombing Yousef's plots were stopped and he was in US custody within six weeks. It was a major victory for international law enforcement and revealed the importance of cryptology, the science of making and breaking secret codes.
To trace the development of codes is to uncover the very fabric of civilization. Once a culture reaches a level of sophistication in literacy, science and language, the demand for secret symbolic communication flourishes. I think codes go back probably as far as there is language. People had something to keep secret. They needed to find some way to scramble it. For centuries, codes have been controlled by governments employed in war, applied in diplomacy, and used in espionage. But with modern technology, the use of codes by individuals has exploded, enriching cryptology and empowering citizens.
A communications boom has heightened the need for codes to keep the information private on the Internet, at ATMs, and in medical offices. Today's complex codes are the result of a historic seesaw battle between code makers and code breakers that has pushed the very boundaries of science. The earliest known code was an inscription carved into a rock by an Egyptian scribe in 1900 BC. It was an attempt to demonstrate wider knowledge by dressing up the writing. Ordinary hieroglyphics were replaced with unusual symbols which told the story of the writer's master, K'numhotep II.
Another early code was used for secrecy. A tiny enciphered tablet found on the banks of the Tigris River, dating from 1500 BC, contained a hidden formula for glazing pottery. And the ancient Greeks created their own inventive coding methods. One of the subordinates of a Persian monarch thought that it might be time to revolt. And he had an agent in the court of Darius the Great, and this agent sent a message to this man saying it's now time to revolt.
he shaved the head of one of his slaves and tattooed on the head the word revolt and waited for the hair to grow and sent the slave down to this man's palace. When the man got the slave, he shaved the head, saw the word revolt and realized that this was the time and he did revolt successfully. In Sparta, a new instrument to encipher messages between legions was used. It was called a skittaly. A cloth was wrapped around a stick and a message written down the side.
Wrapped around the stick, the message could be read. Unwrapped, it was scrambled. The message was sent from general to general. Unwrapped, the generals would have a stick of the appropriate length, could wrap the cloth around it and read the message. Every code had a key, a secret method of scrambling and unscrambling messages used by sender and receiver. Julius Caesar enciphered his military communications using a key that employed an alternative alphabet by moving each letter three spaces to the right.
But with the collapse of the Roman Empire in 500 A.D., European cryptology entered a dark age that would last for a thousand years. But another civilization was rising in the east. by 900 AD Arab society was one of the most literate cultures in the world and the study of codes flourished the Arabs were the first to record the methods of transposition the scrambling of letters as well as substitution the replacement of letters with numbers and symbols they were the first to outline specific techniques of code breaking that involved mathematical or frequency analysis The Arabs were very interested in letter studies, and they counted the number of times a character such as Aleph appeared in the Koran, and they discovered which letters began words frequently.
They used this information, a statistical source, to learn how to break codes. The most frequent coded letter represents the most frequent plain text letter, and that's how you begin to solve a code, and they were the first to do this. With the Renaissance, cryptology had a rebirth in Europe. In 1466, an Italian architect, Leon Alberti, developed the greatest cryptologic invention in a thousand years at the urging of the Vatican. It was a system of rotating cipher disks with two rings of letters and several numbers.
By scrambling so many letters randomly, it was the first to challenge the Arab code-breaking method of frequency analysis. Previous systems just replaced A with D only one at a time. The Alberti cipher disk used a disk in which these letter combinations could be changed from time to time. And as a consequence, A would be represented not by only one letter, but by many letters. This was called polyalphabetic, many alphabet substitution. and it was the basis for many modern cipher systems.
A French diplomat, Blaise de Visionnaire, improved the Alberti system in 1586 by creating a grid of 26 cipher alphabets. Each shifted one over from the last. By use of a key word, encoding and decoding communications using Visionnaire's square could be calculated on a sheet of paper instead of having to carry a disc. Unfortunately, Mary, Queen of Scots, did not employ this new development. Beginning in 1568, Mary was imprisoned by her cousin, Queen Elizabeth I of England.
In 1586, a group of Catholics sought to rescue Mary and put her on England's throne after assassinating Elizabeth. Her rescuers communicated with Mary through secret coded letters. Her great mistake was in thinking that her cipher system was secure. It was actually being read by Queen Elizabeth's code breakers and everything about the plot was known. And when it reached a certain critical point, Queen Elizabeth called a halt to it and sentenced Mary, Queen of Scots, to death.
By the 1700s, each European power had its own black chamber, a nerve center for deciphering messages and gathering intelligence. But the real revolution in cryptology was just ahead. Telegraph, for the first time, made it possible to send messages quickly over long distances. In fact, it made the United States a continental power by increasing its communications power. It also raised the necessity for cryptology. In 1844, Samuel Morse invented Morse code, a series of electrical dots and dashes to communicate over the telegraph.
Because the code was public and messages could be easily intercepted, the need for new secret codes became acute. But the telegraph paled in comparison to the communication industry's next scientific development, one that revolutionized codes and was used with murderous impact in the 20th century. Secret flag signals were used extensively on the battlefield in the American Civil War. Codes will return on Modern Marvels. At the dawn of the 20th century, an Italian physicist, Guglielmo Marconi, changed the world of codes forever.
Marconi's invention harnessed radio waves as a new method of communication. The result was an instantaneous transmission of messages across long distances. The invention of the radio was the most important single event in the history of codes and ciphers. Radio had the great effect of facilitating communications. You don't have to lay wire or anything like that. You can just go out with a radio post and communicate. but it has the great disadvantage of turning over to the enemy every message that you send.
So this means you have to put into code every message that you send, so it stimulated enormously the great growth of codes and ciphers. The ramifications of this new invention were not lost upon the generals. Radio allowed quick communication with field divisions and a more rapid mobile form of warfare. Radio messages were enciphered and sent in Morse code across the airwaves. But radio transmission revealed every cryptogram it conveyed. It furnished a constant and massive stream of intercepts to the enemy.
With the outbreak of World War I, the need for new codes and code breakers sharply escalated. A global battle of secret communications had begun. On August 5, 1914, British divers from the ship Talconia severed German cable lines in the North Atlantic. It appears their idea was simply to make things more difficult for the Germans, but it had the payoff of forcing a great deal of traffic that would have gone by cable onto radio. And so it resulted in really a flood of intercepts coming in that otherwise wouldn't have been available.
Once intercepted, messages were sent to Room 40, the cryptanalysis section of the British Admiralty. Room 40 might be the prototype of modern cryptanalytic organizations. They recruited mathematicians, linguists, chess masters, anybody who was good at puzzle solving. In September 1914, Britain received one of the greatest gifts in the history of cryptology. Her allies, the Russians, captured the German cruiser Magdeburg in the Baltic and a book of Germany's main naval code. They promptly turned the codebook over to Room 40, allowing Britain to break German naval messages and bottle up Germany's battleships for the duration of the war.
code breaking had transformed modern combat being able to read the German naval signals often almost instantaneously was something that simply hadn't happened before in warfare on the eastern front cryptography or lack of it led to one of the most critical battles in World War I in late August 1914 the Russians sent two armies into East Prussia in a pinchers movement to trap the Germans near the village of Tannenburg. The Germans were outmanned, but had the advantage of listening in on Russian radio communications.
Due to the Russians' rudimentary and disorganized coding system, intercepts told the Germans that the Russian southern army was moving faster than its northern force. The Germans wheeled and destroyed the Russian southern army, capturing 100,000 prisoners with an estimated 30,000 dead or missing. This was the first great defeat of the Russians in the war and it started them on their long slide into ruin and revolution. The Russians did not at World War I have a good cipher system and in part they lost the war because of it.
But the greatest code-breaking event in the history of cryptology began on January 17, 1917. The British intercepted a telegram that was encrypted with the highest German diplomatic code, 0075. It was a mind-numbing system of 10,000 words and phrases attached to a thousand numerical code groups. The secret message was from the German foreign minister, Arthur Zimmerman, to his ambassador in Washington, Johann von Bernstorff, for relay to Germany's ambassador to Mexico, Heinrich von Eckart. The telegram would be deciphered there and sent to Mexico's president, Benustiano Carranza.
It was sent from Berlin to Washington, encrypted on the American undersea telegraph cable. The British intercepted it there, recognized its importance. It was in a new diplomatic system which the British had not yet broken. After receiving the message in the new 0075 code, von Bernstorff's office in Washington then made a fatal mistake. In Washington, they took this telegram out of the new diplomatic codebook, re-encrypted it in the old diplomatic codebook, and sent it to Mexico City on the telegraph.
But the British had already broken the old code. The British intercepted that version as well, had versions to compare. Perhaps the silliest, most tragic error that a cryptographer can make. British cryptanalysts began to decipher the message in the old code. In painstaking chunks. Constructing patterns using pencil and paper. Within days, they had it. added. As the meaning of Zimmerman's secret message began to emerge, the import was stunning. Despite the sinking of the American ocean liner Lusitania by the Germans in 1915, America maintained its neutrality with the promise of German restrictions on its U-boats.
The Zimmerman telegram outlined Germany's intent to resume unrestricted submarine warfare on February 1, 1917, as a means to strangle Britain. To keep America at bay, Zimmerman proposed that Mexico invade the United States and reclaim Texas, New Mexico, and Arizona. Germany also asked Mexico to persuade Japan to attack America. The actions would be backed with German military and financial aid. the British Admiralty was desperate to get the deciphered message to the Americans without alerting the Germans that their code had been broken a British agent was able to infiltrate the Mexican telegraph office and retrieve a deciphered copy of the message to Mexico's president once they had their cover of a supposed leak in Mexico the British approached the Americans and revealed the telegram the whole country blew up Everybody was incensed.
Formerly, only the East Coast was concerned. Now, suddenly, the whole Midwest was worried about Mexico. And six weeks after this message was deciphered, the United States declared war on Germany. So it was probably the most significant event in code-breaking history. What he did was convince the entire country that Germany was a national enemy And a few months later, when Woodrow Wilson asked for a declaration of war, he had a united and angry country behind him, ready to go to war against the Germans.
A single breakthrough by the cryptanalysts in Room 40 had succeeded where three years of intensive diplomacy had failed. Code breaking would play an even greater role in cryptology's golden age, World War II. At the end of World War I, the power of the code breakers over the code makers seemed obvious. But by 1917, American inventor Edward Hebern conceived the first model of an electrical machine, made with a wired rotor of letters attached to a keyboard. One year later, a German electrical engineer, Arthur Sherbius, independently created an electrical encryption machine similar to Hebern's.
with several rotors. The inventions revolutionized cryptography by mechanizing the production of codes with millions of potential variations. Imagine a hockey puck, 26 electrical contacts on one side, 26 electrical contacts on the other side, wired at random. You shoot an electrical current through into A. It comes out at Q, lights up a letter. Now this hockey puck turns one space. You shoot a current in again at A. Now it's going to come out at X. And this continues to turn until you go through all 26 revolutions.
And then instead of just having one cipher machine, one cipher wheel next to another, you have several rotors next to another. By the mid-1920s, Sherbius was mass-producing his new model called Enigma. Over the next two decades, he would sell more than 30,000 units to the German military that viewed it as a godsend. Meanwhile, the cryptology offices of the Allies had dwindled in personnel and quality. But Poland, because of its geographical vulnerability between Germany and Russia, was desperate for intelligence.
The Poles set up a world-leading cryptanalyst bureau and hired a group of brilliant mathematicians. One of them was 23-year-old Marian Rajevsky. What Rajevsky realized was that if you have a machine that's based on rotors, there's certain mathematical relationships between the way it encyphers a letter in one position and the way it encyphers a letter in the next position in sequence. Even today, it's an astonishing accomplishment of what he did, was able to reconstruct the wiring of the rotors of an Enigma machine without ever having seen one.
In building his own model of the German military Enigma, all Raevsky had was a commercial version of Enigma and his extraordinary math skills. At the time, only a few hundred German military Enigma units existed, and all were kept under tight control by the German army. Then in 1931, a German trader, Hans Thilo Schmidt, supplied background information for using the Enigma machine which aided Rayefsky's guesswork. The one piece of the puzzle he did not have was knowing how the keyboard of the Enigma machine was wired up to the first rotor.
Maybe he had a good sense of the lack of imagination of the Germans but he thought, well, maybe they wired A to A and B to B and C to C, and sure enough, that was it. He tried that, and he said the solution started coming out as if by magic, almost, on this paper in front of him. But the Germans routinely changed the daily key, the indicator setting that determined the scrambling of their daily messages.
The daily key was distributed in a monthly codebook to both sender and receiver to code and decode messages. To find the daily key, Rajevsky built and connected replicas of six Enigma machines together that ran through more than 17,000 indicator settings. He called his new contraption the bomb because of its ticking noise while running the permutations. Code making had been mechanized with the cipher machines, the Enigma, And now what the Poles were doing after mathematizing their code breaking was carrying it the next step further and mechanizing the mathematized code breaking.
It was a great insight when they invented it, a machine to solve a machine. The Poles secretly read the Enigma traffic for several years until they hit a huge obstacle in December 1938 when the Germans added two new rotors into the rotation. This exponentially increased the need for more bombs and cryptanalysts to run through the daily settings. Fearing a German invasion, the Poles finally called in their allies, Britain and France. In a small brick hut in the Pyrrha Forest south of Warsaw, the Poles revealed their astounding discoveries.
And at the proper moment, they stripped away these cloths, they pulled them off, and there in front of the astonished eyes of the British and the French code breakers were replicas of German Enigma machines. The British were able to smuggle out the machines two weeks before Hitler invaded Poland. They went straight to the government's code and cipher school, otherwise known as Bletchley Park, an ornate mansion 50 miles north of London. Alan Turing, a math genius recruited to Bletchley from Cambridge, soon made a fundamental insight into the workings of the bombs.
The original Polish bomb would just keep sorting through German military messages until it came upon a key word. Alan Turing realized that there were so many possibilities in the German Enigma machine that they couldn't run through them all. And he had a different approach, and he devised a machine which would eliminate most of the possibilities, leaving relatively few to be tested. Each of Turing's bombs had 180 rotors that clicked round letter by letter, 20 every second, until they hit the correct one.
By this time, Bletchley was filled with hundreds of codebreakers who were divided into huts and labored in shifts to solve the flood of incoming messages. True meritocracy and rank didn't matter a hoot. And if the guy was good, regardless of what rank, he was given a free hand. It requires a certain almost contradictory combination of talents. On the one hand, this ability to deal with detail, but at the same time, this ability to achieve this almost sort of illogical leaps of insight and intuition.
It almost is that you wanted, you know, Beethoven with the soul of an accountant. Soon, Britain was deciphering large numbers of the German enigma communications. In 1943, a British engineer, Tommy Flowers, created Colossus, a mechanism that moved code breaking from electromechanical to purely electronic, which worked much faster. It read Germany's most complex coding system, the 12 rotor Lorenz machine, used by Germany's top commanders, including Hitler. Colossus was a proto-computer, capable of reading paper tape at 5,000 characters a second.
The Allied breaking of the German codes played a key role in such victories as the Battle of the Atlantic, the War in North Africa, and D-Day. Allied code breaking shortened the war, saved millions of lives, and highlighted the power of brains over bullets. It also launched the computer age. But there was another coding system used by the Japanese in World War II that the Americans were just as determined to crack. At the close of World War I, American cryptology was rudimentary.
But since the early 1920s, a lone genius, William Friedman, had been developing statistical methods to solve the codes of the new rotor machines while heading the U.S. Signal Corps. When Japan switched to a mechanized coding system in the mid-1930s, Friedman's team of codebreakers was soon reading Japan's new red code for diplomatic communications. But solving Japan's codes was a torturous process. When you're trying to solve a code, you come in every day and look at an inscrutable bunch of letters or numbers.
It's anguish. Maybe we should try this, maybe we should try that. day after day, month after month, year after year sometimes, until finally new messages come in which allow you to see some kind of pattern which you hadn't seen before. Then in February 1939, Japan introduced the Purple Machine, a mind-twisting coding system that employed several rotors and telephone switches. But Japan then made a critical human error, an important factor in code breaking throughout history. The Japanese helped out by sending the same messages in the red and purple systems.
This allowed Americans to compare the two systems and make some breaks. A young MIT electrical engineer in Friedman's group, Leo Rosen, built a machine to simulate Purple's complex scrambling patterns. by 1940 the contraption had automated the decipherment of the Japanese purple code it was a great intellectual accomplishment made the decryption of these Japanese messages almost automatic it sometimes would allow the Americans to read the Japanese ambassadors mail before he did the purple code breakthrough led to one of the greatest intelligence crews of the war.
Tokyo's ambassador to Berlin, Hiroshi Oshima, made a frontline tour of Germany's defenses in Normandy in 1943. He then transmitted a lengthy description back to Japan in the Purple Code. He describes in incredible detail, I mean, down to the caliber of the weapons in the German fortifications, the dimensions of the anti-tank ditches, where minefields It was really a gold mine. The solved message was soon on General Eisenhower's desk. He used it to plan the D-Day invasion of France that was launched six months later.
Though purple had been cracked, America still worked desperately to solve the JN-25B code, Japan's secret naval communications. Joseph Rochefort, a longtime cryptanalyst fluent in Japanese, led the effort in Station Hypo, the Navy's code-breaking branch in Hawaii. By March 1942, after years of excruciating work, JN-25B was broken. On May 14th, a Japanese message was decoded outlining a huge invasion force heading to AF. Rochefort and Admiral Chester Nimitz immediately believed AF was Midway, one of America's key outposts in the Pacific.
But Washington believed it was the Aleutian Islands. Really it was to shut up the doubters in Washington that Rochefort carried out what's now this famous stunt of having a message sent to Midway ordering them to send a message announcing that their desalination plant had broken. And then a few days later, a JN25 message was broken in which the Japanese said that they had intercepted this American message saying that AF was short of water. This really, you know, dotted the I and crossed the T.
The invasion of Midway was the grand plan of Isoroku Yamamoto, Japan's legendary naval commander. The intent was to take over the island, draw out the remaining American fleet from Pearl Harbor, and destroy it with a surprise attack. On June 4th, 1942, the Japanese began to attack Midway, but lurking on the horizon with the coiled forces of the U.S. Navy. Knowing in advance what the Japanese plans were, allowed Nimitz to get his carriers there first and essentially to surprise the Japanese.
We knew where the Japanese fleet was coming. We were able to hover off their flank and, unsuspecting of the Japanese, hurl ourselves on the Japanese, sink four carriers and send the Japanese battleships and carriers reeling back to Japan. That knowledge not only was the turning point for the Battle of Midway, but the Battle of Midway was the turning point in the entire Pacific War. It was a stunning and flawless operation. And in another part of the Pacific, the Americans were launching one of their own codes, one that would never be broken in World War II.
Philip Johnston, a retired engineer living in Los Angeles, proposed using the Navajo language to the Marines in 1942. Johnston grew up on a Navajo reservation and was fluent in its complex forms of conjugation, sounds, and structure. It was remote. Only about 30 white Americans could speak it. No German, Japanese or Italian had ever studied it. The Navajo were also one of America's largest tribes with a potentially huge pool of code talkers. We used what we call a phonetic alphabet.
So we use it by sound. It's natural sounds and guttural sounds and interchangeable. Within weeks of hearing Johnston's idea, the Marines were training 29 Navajo code talkers near San Diego. To avoid confusion, many Navajo words from the natural world were used to indicate specific military terms. Cheetelahi in Navajo is a turtle. And when you send a message and say cheetelahi on the radio, the receiver writes down tanks. T-A-N-K-S By August 1942, the first group of Navajo code talkers saw action during the invasion of Guadalcanal.
By the end of the year, an additional 83 code talkers were serving in all six Marine Corps divisions. If you wanted to communicate a written message securely, you had to type it out or write it out. You had to give it to a code guy. This could take an hour or several hours. With the Navajo code, guys, it was instantaneous. The Navajo spoke directly over the radio, sending and receiving battlefield communications from both field headquarters and from the front lines in their native language.
When you send the Navajo code, the receiver gets it, gives it to commanding officers. That's how fast it was, two minutes against two hours. By war's end, there were 420 Navajo code talkers. After the war, the U.S. government forbade them to talk of their unique contributions because of the secrecy of their code. Only in 1968 was the Navajo code made public. And in 1982, the code talkers were finally honored with a special commemoration day. America owes the Navajo code talkers the lives of many of its sons.
The greatest tribute was that their code was never broken. But for code makers, the hunt for a truly unbreakable code is an obsession that continues into the age of computers. American code breaker William Friedman invented several cryptologic machines, Two of which were so secret, patents were never filed. Codes will return on modern marvels. For centuries, governments had controlled cryptology. That would change with the modern age. Soon after World War II, computers began to create codes of almost infinite complexity.
There's a rule of thumb in cryptography. If you double the number of combinations that the code makes, you have to square the number of combinations that the code breaker has to try. So one guy is going from 5 to 10, but the code breaker has to go from 5 to 25. It's much easier to make the number of combinations virtually impossible to test. But this new encryption was still only accessible to the government. In 1952, President Harry Truman founded the National Security Agency, the greatest collection of computer and cryptologic talent in the world.
Its charge was to intercept and decrypt intelligence from all over the globe. By the 1970s, more businesses began using computers to encrypt communications. But distributing secret keys needed to encode and decode messages remained cryptology's greatest historical problem. Businesses had to physically fly couriers to dozens of distant offices to deliver the secret keys to avoid interception and to ensure absolute security. But key distribution was not cryptology's only problem. By the 1970s, some people were concerned about the growing code-breaking power of the government because of computer technology.
I think the biggest threat to privacy that we face is Moore's law. It's the power of computing doubling every 18 months. The human population is not doubling every 18 months, but the ability for computers to keep track of us is. technology with computers behind them to analyze the surveillance data can give rise to an omniscient government and it's not clear that democracy can survive omniscience by the mid-1970s a trio of Stanford cryptographers Whitfield Diffie Martin Hellman and Ralph Merkel created a theoretical model for coded computer communications that eliminated the need for a secret distribution of keys.
It also sought to offer powerful digital encryption to a perceived future of mass computer users, as a counterweight to government spying. Called public key cryptography, it gave each computer user a pair of different but related keys, one public and one private. Now say Bob wants to send a secret message to Alice. Bob would use Alice's public key for encoding, but only Alice could use her private key to decode the message. No physical transportation of secret keys.
And now even Bob and Alice could theoretically have access to encrypted communications hidden from the most powerful investigative forces in government. Complete privacy. None of the other developments in cryptography that I have seen from the The beginning of codes and ciphers themselves has had the impact or has been as original a concept in cryptography as Whitfield Diffie's invention of public key cryptography. Within a year, three MIT researchers, Ronald Rivest, Adi Shamir, and Leonard Adelman, created a series of mathematical equations using prime numbers that made Diffie's theory practical.
As a side note, a group of three scientists, James Ellis, Malcolm Williamson and Clifford Cox, working for Britain's government communications headquarters, apparently independently invented public key cryptography by the mid-1970s, just before Whitfield Diffie. Their work was classified, and it wasn't until 1997 that public acknowledgement of their feat was recognized. As for the three MIT inventors, they formed RSA Data Security in 1982, the first company to commercialize public key cryptography and launch secure e-commerce. The market we were going after in 1982 was the Internet market.
But we were so premature because of this to be 15 years later that the World Wide Web took off. But the National Security Agency did notice and desperately tried to stop the spread of public cryptography. In 1986, the government stopped Lotus Development from exporting its software because it included RSA encryption. Then in 1993, the government investigated Phil Zimmerman for creating and distributing Pretty Good Privacy, a software that used RSA encryption over the Internet. PGP could be used on anybody's personal computer, instead of just the giant machines used by the government and businesses.
There was a time when NSA held a monopoly on this kind of technology. But over the past 20 years, that monopoly has eroded, and now academic cryptography has reached parity with the NSA. And PGP uses the best of the academic cryptographic algorithms and has made it available to the masses. The National Security Agency was terrified that criminals were now accessing the world's most powerful, unbreakable encryption. The NSA believed PGP was severely compromising its code-breaking and intelligence-gathering abilities.
Many times I've been worried about if criminals and terrorists were to use this technology. And I did a lot of soul-searching on it. I sometimes lost sleep thinking about it. but individual governments like Stalin or Hitler have killed more people than all of the criminals of the 20th century combined all over the world. By 1994, RSA encryption was widely used in most U.S. software and companies were pushing to export it. The government urgently sought a compromise by introducing the Clipper chip, a government chip that would be installed in communications devices.
The chip, like a wiretap, could only be accessed by the government through a court order. Law enforcement could still eavesdrop on suspected criminals, but grant the public a level of privacy. People were concerned that it was voluntary to start out with, but that it would become mandatory, that it would be pushed upon them. They were concerned about loss of personal privacy. Do you want to control your private communications just by yourself, or do you want to be partners with the government?
in controlling your private communication. And ultimately, the society has decided that we want to keep privacy to ourselves. After a five-year fight and a huge public backlash to the proposal, the Clinton administration granted businesses the right to export public cryptography. By 1996, after MIT had published PGP in a book and posted it on its website, The government backed off its investigation of Zimmerman. Even though government has intruded increasingly into private lives and has greater capacities these days to intercept communications, the growth of encryption has made it possible for individuals to protect themselves and protect their privacy in a way that had never been able to be done before.
You know, historically there's been a battle between cryptographers who make the codes and cryptanalysts who break the codes. And Edgar Allan Poe once said that any code that a man can invent, another man can break. But it turns out that that's probably incorrect. The best mathematical evidence we have is that that's not the case. That, in fact, code makers do win over code breakers. Code breaking will last as long as people make mistakes. but the code systems themselves are getting better and better.
They can't be broken now if properly used. So I think we're in an era of the slow death of the code breaker, much as I regret it in a way, and increasingly in the era of the code maker. But throughout history, new codes have always been declared unbreakable, only to be eventually broken. As codes enter the realm of quantum computers, human ingenuity will be tested once again. Only time will tell the victors.
View Timestamped Dialogue Cues
`[00:00]` Caesar altered his alphabet.
`[00:03]` The Nazis had enigma.
`[00:05]` Computers and digital encryption.
`[00:07]` The attempts to make and break these secret methods of scrambled communication
`[00:11]` have changed the course of history.
`[00:14]` Now, Codes on Modern Marvels.
`[00:30]` Manila, the Philippines, January 6, 1995.
`[00:34]` When police responded to an apartment fire,
`[00:38]` they found a Toshiba laptop amid a batch of chemicals and bomb-making materials.
`[00:43]` An open file on the laptop revealed a plan to simultaneously bomb 12 U.S. airliners over the Pacific.
`[00:51]` The potential death toll, 4,000 passengers.
`[00:54]` several other files used encryption software that scrambled the writings in secret code
`[01:01]` the Philippine police decoded some of the files using a special computer program
`[01:06]` and uncovered a list of bomb making recipes
`[01:10]` all the evidence pointed to the most hunted terrorist in the world
`[01:15]` Ramzi Yousef
`[01:17]` wanted for his involvement in the World Trade Center bombing
`[01:20]` Yousef's plots were stopped and he was in US custody within six weeks.
`[01:27]` It was a major victory for international law enforcement and revealed the importance of cryptology,
`[01:33]` the science of making and breaking secret codes.
`[01:37]` To trace the development of codes is to uncover the very fabric of civilization.
`[01:42]` Once a culture reaches a level of sophistication in literacy, science and language,
`[01:48]` the demand for secret symbolic communication flourishes.
`[01:53]` I think codes go back probably as far as there is language.
`[01:58]` People had something to keep secret.
`[01:59]` They needed to find some way to scramble it.
`[02:03]` For centuries, codes have been controlled by governments
`[02:06]` employed in war, applied in diplomacy, and used in espionage.
`[02:13]` But with modern technology,
`[02:15]` the use of codes by individuals has exploded, enriching cryptology and empowering citizens.
`[02:23]` A communications boom has heightened the need for codes to keep the information private on the Internet,
`[02:29]` at ATMs, and in medical offices.
`[02:36]` Today's complex codes are the result of a historic seesaw battle
`[02:40]` between code makers and code breakers
`[02:43]` that has pushed the very boundaries of science.
`[02:47]` The earliest known code was an inscription carved into a rock
`[02:50]` by an Egyptian scribe in 1900 BC.
`[02:54]` It was an attempt to demonstrate wider knowledge by dressing up the writing.
`[03:00]` Ordinary hieroglyphics were replaced with unusual symbols
`[03:03]` which told the story of the writer's master, K'numhotep II.
`[03:10]` Another early code was used for secrecy. A tiny enciphered tablet found on the banks of the Tigris River, dating from 1500 BC, contained a hidden formula for glazing pottery. And the ancient Greeks created their own inventive coding methods.
`[03:28]` One of the subordinates of a Persian monarch thought that it might be time to revolt.
`[03:38]` And he had an agent in the court of Darius the Great, and this agent sent a message to this man saying it's now time to revolt.
`[03:47]` he shaved the head of one of his slaves
`[03:50]` and tattooed on the head the word revolt
`[03:54]` and waited for the hair to grow
`[03:56]` and sent the slave down to this man's palace.
`[04:00]` When the man got the slave, he shaved the head,
`[04:02]` saw the word revolt and realized that this was the time
`[04:05]` and he did revolt successfully.
`[04:09]` In Sparta, a new instrument to encipher messages
`[04:13]` between legions was used.
`[04:14]` It was called a skittaly.
`[04:17]` A cloth was wrapped around a stick and a message written down the side.
`[04:22]` Wrapped around the stick, the message could be read.
`[04:25]` Unwrapped, it was scrambled.
`[04:27]` The message was sent from general to general.
`[04:30]` Unwrapped, the generals would have a stick of the appropriate length,
`[04:33]` could wrap the cloth around it and read the message.
`[04:36]` Every code had a key,
`[04:38]` a secret method of scrambling and unscrambling messages used by sender and receiver.
`[04:43]` Julius Caesar enciphered his military communications using a key that employed an alternative alphabet
`[04:50]` by moving each letter three spaces to the right.
`[04:56]` But with the collapse of the Roman Empire in 500 A.D.,
`[05:00]` European cryptology entered a dark age that would last for a thousand years.
`[05:07]` But another civilization was rising in the east.
`[05:10]` by 900 AD Arab society was one of the most literate cultures in the world and
`[05:15]` the study of codes flourished the Arabs were the first to record the methods of
`[05:22]` transposition the scrambling of letters as well as substitution the replacement
`[05:28]` of letters with numbers and symbols they were the first to outline specific
`[05:33]` techniques of code breaking that involved mathematical or frequency analysis
`[05:39]` The Arabs were very interested in letter studies,
`[05:45]` and they counted the number of times a character such as Aleph appeared in the Koran,
`[05:50]` and they discovered which letters began words frequently.
`[05:54]` They used this information, a statistical source, to learn how to break codes.
`[06:00]` The most frequent coded letter represents the most frequent plain text letter,
`[06:05]` and that's how you begin to solve a code, and they were the first to do this.
`[06:09]` With the Renaissance, cryptology had a rebirth in Europe.
`[06:15]` In 1466, an Italian architect, Leon Alberti,
`[06:19]` developed the greatest cryptologic invention in a thousand years
`[06:22]` at the urging of the Vatican.
`[06:25]` It was a system of rotating cipher disks
`[06:28]` with two rings of letters and several numbers.
`[06:32]` By scrambling so many letters randomly,
`[06:34]` it was the first to challenge the Arab code-breaking method of frequency analysis.
`[06:39]` Previous systems just replaced A with D only one at a time.
`[06:46]` The Alberti cipher disk used a disk in which these letter combinations could be changed from time to time.
`[06:54]` And as a consequence, A would be represented not by only one letter, but by many letters.
`[07:00]` This was called polyalphabetic, many alphabet substitution.
`[07:06]` and it was the basis for many modern cipher systems.
`[07:11]` A French diplomat, Blaise de Visionnaire, improved the Alberti system in 1586
`[07:16]` by creating a grid of 26 cipher alphabets.
`[07:21]` Each shifted one over from the last.
`[07:25]` By use of a key word, encoding and decoding communications using Visionnaire's square
`[07:31]` could be calculated on a sheet of paper instead of having to carry a disc.
`[07:37]` Unfortunately, Mary, Queen of Scots, did not employ this new development.
`[07:42]` Beginning in 1568, Mary was imprisoned by her cousin, Queen Elizabeth I of England.
`[07:48]` In 1586, a group of Catholics sought to rescue Mary
`[07:53]` and put her on England's throne after assassinating Elizabeth.
`[07:57]` Her rescuers communicated with Mary through secret coded letters.
`[08:02]` Her great mistake was in thinking that her cipher system was secure.
`[08:07]` It was actually being read by Queen Elizabeth's code breakers and everything about the plot was known.
`[08:14]` And when it reached a certain critical point, Queen Elizabeth called a halt to it and sentenced Mary, Queen of Scots, to death.
`[08:22]` By the 1700s, each European power had its own black chamber,
`[08:28]` a nerve center for deciphering messages and gathering intelligence.
`[08:31]` But the real revolution in cryptology was just ahead.
`[08:36]` Telegraph, for the first time, made it possible to send messages quickly over long distances.
`[08:43]` In fact, it made the United States a continental power by increasing its communications power.
`[08:48]` It also raised the necessity for cryptology.
`[08:54]` In 1844, Samuel Morse invented Morse code,
`[08:59]` a series of electrical dots and dashes to communicate over the telegraph.
`[09:03]` Because the code was public and messages could be easily intercepted,
`[09:08]` the need for new secret codes became acute.
`[09:11]` But the telegraph paled in comparison
`[09:14]` to the communication industry's next scientific development,
`[09:18]` one that revolutionized codes and was used with murderous impact in the 20th century.
`[09:26]` Secret flag signals were used extensively on the battlefield in the American Civil War.
`[09:33]` Codes will return on Modern Marvels.
`[09:36]` At the dawn of the 20th century, an Italian physicist, Guglielmo Marconi,
`[09:43]` changed the world of codes forever.
`[09:44]` Marconi's invention harnessed radio waves as a new method of communication.
`[09:51]` The result was an instantaneous transmission of messages across long distances.
`[09:57]` The invention of the radio was the most important single event in the history of codes and ciphers.
`[10:02]` Radio had the great effect of facilitating communications.
`[10:07]` You don't have to lay wire or anything like that.
`[10:09]` You can just go out with a radio post and communicate.
`[10:11]` but it has the great disadvantage of turning over to the enemy every message that you send.
`[10:19]` So this means you have to put into code every message that you send,
`[10:25]` so it stimulated enormously the great growth of codes and ciphers.
`[10:30]` The ramifications of this new invention were not lost upon the generals.
`[10:36]` Radio allowed quick communication with field divisions
`[10:39]` and a more rapid mobile form of warfare.
`[10:44]` Radio messages were enciphered and sent in Morse code across the airwaves.
`[10:49]` But radio transmission revealed every cryptogram it conveyed.
`[10:54]` It furnished a constant and massive stream of intercepts to the enemy.
`[10:59]` With the outbreak of World War I,
`[11:01]` the need for new codes and code breakers sharply escalated.
`[11:05]` A global battle of secret communications had begun.
`[11:11]` On August 5, 1914, British divers from the ship Talconia severed German cable lines in the North Atlantic.
`[11:20]` It appears their idea was simply to make things more difficult for the Germans,
`[11:24]` but it had the payoff of forcing a great deal of traffic that would have gone by cable onto radio.
`[11:31]` And so it resulted in really a flood of intercepts coming in that otherwise wouldn't have been available.
`[11:40]` Once intercepted, messages were sent to Room 40, the cryptanalysis section of the British Admiralty.
`[11:47]` Room 40 might be the prototype of modern cryptanalytic organizations.
`[11:52]` They recruited mathematicians, linguists, chess masters, anybody who was good at puzzle solving.
`[11:59]` In September 1914, Britain received one of the greatest gifts in the history of cryptology.
`[12:07]` Her allies, the Russians, captured the German cruiser Magdeburg in the Baltic
`[12:12]` and a book of Germany's main naval code.
`[12:16]` They promptly turned the codebook over to Room 40,
`[12:19]` allowing Britain to break German naval messages
`[12:22]` and bottle up Germany's battleships for the duration of the war.
`[12:25]` code breaking had transformed modern combat
`[12:29]` being able to read the German naval signals
`[12:34]` often almost instantaneously
`[12:37]` was something that simply hadn't happened before in warfare
`[12:43]` on the eastern front
`[12:46]` cryptography or lack of it
`[12:48]` led to one of the most critical battles in World War I
`[12:51]` in late August 1914
`[12:54]` the Russians sent two armies into East Prussia
`[12:58]` in a pinchers movement to trap the Germans near the village of Tannenburg.
`[13:03]` The Germans were outmanned,
`[13:05]` but had the advantage of listening in on Russian radio communications.
`[13:10]` Due to the Russians' rudimentary and disorganized coding system,
`[13:14]` intercepts told the Germans that the Russian southern army
`[13:17]` was moving faster than its northern force.
`[13:21]` The Germans wheeled and destroyed the Russian southern army,
`[13:24]` capturing 100,000 prisoners with an estimated 30,000 dead or missing.
`[13:31]` This was the first great defeat of the Russians in the war
`[13:35]` and it started them on their long slide into ruin and revolution.
`[13:41]` The Russians did not at World War I have a good cipher system
`[13:46]` and in part they lost the war because of it.
`[13:49]` But the greatest code-breaking event in the history of cryptology
`[13:52]` began on January 17, 1917.
`[13:56]` The British intercepted a telegram
`[13:59]` that was encrypted with the highest German diplomatic code,
`[14:02]` 0075.
`[14:05]` It was a mind-numbing system of 10,000 words and phrases
`[14:09]` attached to a thousand numerical code groups.
`[14:13]` The secret message was from the German foreign minister,
`[14:17]` Arthur Zimmerman,
`[14:18]` to his ambassador in Washington,
`[14:20]` Johann von Bernstorff,
`[14:22]` for relay to Germany's ambassador to Mexico, Heinrich von Eckart.
`[14:28]` The telegram would be deciphered there and sent to Mexico's president, Benustiano Carranza.
`[14:35]` It was sent from Berlin to Washington, encrypted on the American undersea telegraph cable.
`[14:45]` The British intercepted it there, recognized its importance.
`[14:48]` It was in a new diplomatic system which the British had not yet broken.
`[14:54]` After receiving the message in the new 0075 code,
`[14:58]` von Bernstorff's office in Washington then made a fatal mistake.
`[15:04]` In Washington, they took this telegram out of the new diplomatic codebook,
`[15:10]` re-encrypted it in the old diplomatic codebook,
`[15:12]` and sent it to Mexico City on the telegraph.
`[15:15]` But the British had already broken the old code.
`[15:19]` The British intercepted that version as well, had versions to compare.
`[15:25]` Perhaps the silliest, most tragic error that a cryptographer can make.
`[15:29]` British cryptanalysts began to decipher the message in the old code.
`[15:34]` In painstaking chunks.
`[15:36]` Constructing patterns using pencil and paper.
`[15:40]` Within days, they had it.
`[15:42]` added. As the meaning of Zimmerman's secret message began to emerge, the import was stunning.
`[15:50]` Despite the sinking of the American ocean liner Lusitania by the Germans in 1915,
`[15:55]` America maintained its neutrality with the promise of German restrictions on its U-boats.
`[16:01]` The Zimmerman telegram outlined Germany's intent to resume unrestricted submarine warfare
`[16:07]` on February 1, 1917, as a means to strangle Britain.
`[16:14]` To keep America at bay, Zimmerman proposed that Mexico invade the United States
`[16:19]` and reclaim Texas, New Mexico, and Arizona.
`[16:24]` Germany also asked Mexico to persuade Japan to attack America.
`[16:29]` The actions would be backed with German military and financial aid.
`[16:33]` the British Admiralty was desperate to get the deciphered message to the Americans
`[16:38]` without alerting the Germans that their code had been broken
`[16:41]` a British agent was able to infiltrate the Mexican telegraph office
`[16:47]` and retrieve a deciphered copy of the message to Mexico's president
`[16:50]` once they had their cover of a supposed leak in Mexico
`[16:54]` the British approached the Americans and revealed the telegram
`[16:58]` the whole country blew up
`[17:01]` Everybody was incensed.
`[17:04]` Formerly, only the East Coast was concerned.
`[17:07]` Now, suddenly, the whole Midwest was worried about Mexico.
`[17:12]` And six weeks after this message was deciphered, the United States declared war on Germany.
`[17:18]` So it was probably the most significant event in code-breaking history.
`[17:23]` What he did was convince the entire country that Germany was a national enemy
`[17:31]` And a few months later, when Woodrow Wilson asked for a declaration of war,
`[17:35]` he had a united and angry country behind him, ready to go to war against the Germans.
`[17:41]` A single breakthrough by the cryptanalysts in Room 40 had succeeded where three years of intensive diplomacy had failed.
`[17:50]` Code breaking would play an even greater role in cryptology's golden age, World War II.
`[17:56]` At the end of World War I, the power of the code breakers over the code makers seemed obvious.
`[18:04]` But by 1917, American inventor Edward Hebern conceived the first model of an electrical machine,
`[18:11]` made with a wired rotor of letters attached to a keyboard.
`[18:16]` One year later, a German electrical engineer, Arthur Sherbius,
`[18:21]` independently created an electrical encryption machine similar to Hebern's.
`[18:26]` with several rotors. The inventions revolutionized cryptography by mechanizing the production of
`[18:33]` codes with millions of potential variations. Imagine a hockey puck, 26 electrical contacts
`[18:41]` on one side, 26 electrical contacts on the other side, wired at random. You shoot an electrical
`[18:48]` current through into A. It comes out at Q, lights up a letter. Now this hockey puck turns
`[18:56]` one space. You shoot a current in again at A. Now it's going to come out at X. And this
`[19:04]` continues to turn until you go through all 26 revolutions. And then instead of just having
`[19:11]` one cipher machine, one cipher wheel next to another, you have several rotors next to
`[19:17]` another. By the mid-1920s, Sherbius was mass-producing his new model called Enigma. Over the next
`[19:27]` two decades, he would sell more than 30,000 units to the German military that viewed it
`[19:32]` as a godsend. Meanwhile, the cryptology offices of the Allies had dwindled in personnel and
`[19:39]` quality. But Poland, because of its geographical vulnerability between Germany and Russia,
`[19:45]` was desperate for intelligence.
`[19:48]` The Poles set up a world-leading cryptanalyst bureau
`[19:50]` and hired a group of brilliant mathematicians.
`[19:54]` One of them was 23-year-old Marian Rajevsky.
`[19:58]` What Rajevsky realized was that if you have a machine that's based on rotors,
`[20:03]` there's certain mathematical relationships
`[20:05]` between the way it encyphers a letter in one position
`[20:10]` and the way it encyphers a letter in the next position in sequence.
`[20:14]` Even today, it's an astonishing accomplishment of what he did,
`[20:18]` was able to reconstruct the wiring of the rotors of an Enigma machine without ever having seen one.
`[20:26]` In building his own model of the German military Enigma,
`[20:30]` all Raevsky had was a commercial version of Enigma and his extraordinary math skills.
`[20:37]` At the time, only a few hundred German military Enigma units existed,
`[20:41]` and all were kept under tight control by the German army.
`[20:46]` Then in 1931, a German trader, Hans Thilo Schmidt,
`[20:51]` supplied background information for using the Enigma machine
`[20:54]` which aided Rayefsky's guesswork.
`[20:58]` The one piece of the puzzle he did not have
`[21:01]` was knowing how the keyboard of the Enigma machine
`[21:04]` was wired up to the first rotor.
`[21:07]` Maybe he had a good sense of the lack of imagination of the Germans
`[21:11]` but he thought, well, maybe they wired A to A and B to B and C to C,
`[21:15]` and sure enough, that was it.
`[21:16]` He tried that, and he said the solution started coming out
`[21:20]` as if by magic, almost, on this paper in front of him.
`[21:25]` But the Germans routinely changed the daily key,
`[21:29]` the indicator setting that determined the scrambling of their daily messages.
`[21:35]` The daily key was distributed in a monthly codebook
`[21:38]` to both sender and receiver to code and decode messages.
`[21:42]` To find the daily key,
`[21:45]` Rajevsky built and connected replicas of six Enigma machines together
`[21:49]` that ran through more than 17,000 indicator settings.
`[21:53]` He called his new contraption the bomb
`[21:56]` because of its ticking noise while running the permutations.
`[22:01]` Code making had been mechanized with the cipher machines, the Enigma,
`[22:05]` And now what the Poles were doing after mathematizing their code breaking
`[22:10]` was carrying it the next step further and mechanizing the mathematized code breaking.
`[22:18]` It was a great insight when they invented it, a machine to solve a machine.
`[22:23]` The Poles secretly read the Enigma traffic for several years
`[22:27]` until they hit a huge obstacle in December 1938
`[22:30]` when the Germans added two new rotors into the rotation.
`[22:35]` This exponentially increased the need for more bombs and cryptanalysts to run through the daily settings.
`[22:42]` Fearing a German invasion, the Poles finally called in their allies, Britain and France.
`[22:47]` In a small brick hut in the Pyrrha Forest south of Warsaw, the Poles revealed their astounding discoveries.
`[22:56]` And at the proper moment, they stripped away these cloths, they pulled them off,
`[23:02]` and there in front of the astonished eyes of the British and the French code breakers
`[23:07]` were replicas of German Enigma machines.
`[23:11]` The British were able to smuggle out the machines two weeks before Hitler invaded Poland.
`[23:17]` They went straight to the government's code and cipher school,
`[23:21]` otherwise known as Bletchley Park, an ornate mansion 50 miles north of London.
`[23:27]` Alan Turing, a math genius recruited to Bletchley from Cambridge,
`[23:31]` soon made a fundamental insight into the workings of the bombs.
`[23:36]` The original Polish bomb would just keep sorting through German military messages
`[23:42]` until it came upon a key word.
`[23:44]` Alan Turing realized that there were so many possibilities in the German Enigma machine
`[23:49]` that they couldn't run through them all.
`[23:52]` And he had a different approach, and he devised a machine
`[23:56]` which would eliminate most of the possibilities, leaving relatively few to be tested.
`[24:04]` Each of Turing's bombs had 180 rotors that clicked round letter by letter,
`[24:10]` 20 every second, until they hit the correct one.
`[24:15]` By this time, Bletchley was filled with hundreds of codebreakers
`[24:19]` who were divided into huts and labored in shifts to solve the flood of incoming messages.
`[24:24]` True meritocracy and rank didn't matter a hoot.
`[24:32]` And if the guy was good, regardless of what rank, he was given a free hand.
`[24:40]` It requires a certain almost contradictory combination of talents.
`[24:45]` On the one hand, this ability to deal with detail, but at the same time, this ability to achieve this almost sort of illogical leaps of insight and intuition.
`[25:01]` It almost is that you wanted, you know, Beethoven with the soul of an accountant.
`[25:06]` Soon, Britain was deciphering large numbers of the German enigma communications.
`[25:11]` In 1943, a British engineer, Tommy Flowers, created Colossus, a mechanism that moved code
`[25:20]` breaking from electromechanical to purely electronic, which worked much faster.
`[25:26]` It read Germany's most complex coding system, the 12 rotor Lorenz machine, used by Germany's
`[25:33]` top commanders, including Hitler.
`[25:36]` Colossus was a proto-computer, capable of reading paper tape at 5,000 characters a second.
`[25:45]` The Allied breaking of the German codes played a key role in such victories as the Battle of the Atlantic,
`[25:52]` the War in North Africa, and D-Day.
`[25:56]` Allied code breaking shortened the war, saved millions of lives,
`[26:01]` and highlighted the power of brains over bullets.
`[26:05]` It also launched the computer age.
`[26:08]` But there was another coding system used by the Japanese in World War II
`[26:13]` that the Americans were just as determined to crack.
`[26:17]` At the close of World War I, American cryptology was rudimentary.
`[26:22]` But since the early 1920s, a lone genius, William Friedman,
`[26:27]` had been developing statistical methods to solve the codes of the new rotor machines
`[26:31]` while heading the U.S. Signal Corps.
`[26:34]` When Japan switched to a mechanized coding system in the mid-1930s, Friedman's team of codebreakers was soon reading Japan's new red code for diplomatic communications.
`[26:46]` But solving Japan's codes was a torturous process.
`[26:51]` When you're trying to solve a code, you come in every day and look at an inscrutable bunch of letters or numbers.
`[27:00]` It's anguish. Maybe we should try this, maybe we should try that.
`[27:03]` day after day, month after month, year after year sometimes,
`[27:07]` until finally new messages come in which allow you to see
`[27:12]` some kind of pattern which you hadn't seen before.
`[27:15]` Then in February 1939, Japan introduced the Purple Machine,
`[27:21]` a mind-twisting coding system that employed several rotors and telephone switches.
`[27:27]` But Japan then made a critical human error,
`[27:30]` an important factor in code breaking throughout history.
`[27:35]` The Japanese helped out by sending the same messages in the red and purple systems.
`[27:40]` This allowed Americans to compare the two systems and make some breaks.
`[27:46]` A young MIT electrical engineer in Friedman's group, Leo Rosen,
`[27:52]` built a machine to simulate Purple's complex scrambling patterns.
`[27:55]` by 1940 the contraption had automated the decipherment of the Japanese purple
`[28:03]` code
`[28:05]` it was a great intellectual accomplishment made the decryption of
`[28:09]` these Japanese messages almost automatic it sometimes would allow the
`[28:13]` Americans to read the Japanese ambassadors mail before he did the
`[28:19]` purple code breakthrough led to one of the greatest intelligence crews of the
`[28:22]` war. Tokyo's ambassador to Berlin, Hiroshi Oshima, made a frontline tour of Germany's
`[28:30]` defenses in Normandy in 1943. He then transmitted a lengthy description back to Japan in the
`[28:37]` Purple Code. He describes in incredible detail, I mean, down to the caliber of the weapons
`[28:45]` in the German fortifications, the dimensions of the anti-tank ditches, where minefields
`[28:51]` It was really a gold mine.
`[28:54]` The solved message was soon on General Eisenhower's desk.
`[28:58]` He used it to plan the D-Day invasion of France that was launched six months later.
`[29:03]` Though purple had been cracked, America still worked desperately to solve the JN-25B code,
`[29:10]` Japan's secret naval communications.
`[29:13]` Joseph Rochefort, a longtime cryptanalyst fluent in Japanese,
`[29:18]` led the effort in Station Hypo,
`[29:19]` the Navy's code-breaking branch in Hawaii.
`[29:24]` By March 1942, after years of excruciating work,
`[29:29]` JN-25B was broken.
`[29:32]` On May 14th, a Japanese message was decoded
`[29:35]` outlining a huge invasion force heading to AF.
`[29:40]` Rochefort and Admiral Chester Nimitz immediately believed
`[29:43]` AF was Midway, one of America's key outposts in the Pacific.
`[29:49]` But Washington believed it was the Aleutian Islands.
`[29:53]` Really it was to shut up the doubters in Washington
`[29:56]` that Rochefort carried out what's now this famous stunt
`[30:02]` of having a message sent to Midway
`[30:05]` ordering them to send a message
`[30:08]` announcing that their desalination plant had broken.
`[30:11]` And then a few days later, a JN25 message was broken
`[30:15]` in which the Japanese said that they had intercepted this American message
`[30:21]` saying that AF was short of water.
`[30:24]` This really, you know, dotted the I and crossed the T.
`[30:28]` The invasion of Midway was the grand plan of Isoroku Yamamoto,
`[30:33]` Japan's legendary naval commander.
`[30:37]` The intent was to take over the island,
`[30:40]` draw out the remaining American fleet from Pearl Harbor,
`[30:43]` and destroy it with a surprise attack.
`[30:45]` On June 4th, 1942, the Japanese began to attack Midway, but lurking on the horizon with the coiled forces of the U.S. Navy.
`[30:57]` Knowing in advance what the Japanese plans were, allowed Nimitz to get his carriers there first and essentially to surprise the Japanese.
`[31:05]` We knew where the Japanese fleet was coming. We were able to hover off their flank and, unsuspecting of the Japanese, hurl ourselves on the Japanese, sink four carriers and send the Japanese battleships and carriers reeling back to Japan.
`[31:24]` That knowledge not only was the turning point for the Battle of Midway, but the Battle of Midway was the turning point in the entire Pacific War.
`[31:32]` It was a stunning and flawless operation.
`[31:38]` And in another part of the Pacific, the Americans were launching one of their own codes,
`[31:42]` one that would never be broken in World War II.
`[31:45]` Philip Johnston, a retired engineer living in Los Angeles,
`[31:49]` proposed using the Navajo language to the Marines in 1942.
`[31:55]` Johnston grew up on a Navajo reservation
`[31:56]` and was fluent in its complex forms of conjugation, sounds, and structure.
`[32:02]` It was remote. Only about 30 white Americans could speak it.
`[32:07]` No German, Japanese or Italian had ever studied it.
`[32:11]` The Navajo were also one of America's largest tribes with a potentially huge pool of code talkers.
`[32:17]` We used what we call a phonetic alphabet.
`[32:22]` So we use it by sound.
`[32:25]` It's natural sounds and guttural sounds and interchangeable.
`[32:32]` Within weeks of hearing Johnston's idea, the Marines were training 29 Navajo code talkers near San Diego.
`[32:40]` To avoid confusion, many Navajo words from the natural world were used to indicate specific military terms.
`[32:49]` Cheetelahi in Navajo is a turtle.
`[32:54]` And when you send a message and say cheetelahi on the radio, the receiver writes down tanks.
`[33:02]` T-A-N-K-S
`[33:04]` By August 1942, the first group of Navajo code talkers saw action during the invasion of Guadalcanal.
`[33:15]` By the end of the year, an additional 83 code talkers were serving in all six Marine Corps divisions.
`[33:22]` If you wanted to communicate a written message securely, you had to type it out or write it out.
`[33:28]` You had to give it to a code guy. This could take an hour or several hours.
`[33:32]` With the Navajo code, guys, it was instantaneous.
`[33:36]` The Navajo spoke directly over the radio,
`[33:39]` sending and receiving battlefield communications from both field headquarters
`[33:43]` and from the front lines in their native language.
`[33:47]` When you send the Navajo code, the receiver gets it, gives it to commanding officers.
`[33:53]` That's how fast it was, two minutes against two hours.
`[33:58]` By war's end, there were 420 Navajo code talkers.
`[34:03]` After the war, the U.S. government forbade them to talk of their unique contributions because of the secrecy of their code.
`[34:11]` Only in 1968 was the Navajo code made public.
`[34:16]` And in 1982, the code talkers were finally honored with a special commemoration day.
`[34:22]` America owes the Navajo code talkers the lives of many of its sons.
`[34:29]` The greatest tribute was that their code was never broken.
`[34:34]` But for code makers, the hunt for a truly unbreakable code is an obsession
`[34:39]` that continues into the age of computers.
`[34:43]` American code breaker William Friedman invented several cryptologic machines,
`[34:48]` Two of which were so secret, patents were never filed.
`[34:53]` Codes will return on modern marvels.
`[34:57]` For centuries, governments had controlled cryptology.
`[35:02]` That would change with the modern age.
`[35:05]` Soon after World War II, computers began to create codes of almost infinite complexity.
`[35:11]` There's a rule of thumb in cryptography.
`[35:13]` If you double the number of combinations that the code makes, you have to square the number of combinations that the code breaker has to try.
`[35:24]` So one guy is going from 5 to 10, but the code breaker has to go from 5 to 25.
`[35:31]` It's much easier to make the number of combinations virtually impossible to test.
`[35:38]` But this new encryption was still only accessible to the government.
`[35:44]` In 1952, President Harry Truman founded the National Security Agency,
`[35:50]` the greatest collection of computer and cryptologic talent in the world.
`[35:54]` Its charge was to intercept and decrypt intelligence from all over the globe.
`[35:59]` By the 1970s, more businesses began using computers to encrypt communications.
`[36:04]` But distributing secret keys needed to encode and decode messages remained cryptology's
`[36:11]` greatest historical problem.
`[36:15]` Businesses had to physically fly couriers to dozens of distant offices to deliver the
`[36:20]` secret keys to avoid interception and to ensure absolute security.
`[36:27]` But key distribution was not cryptology's only problem.
`[36:31]` By the 1970s, some people were concerned about the growing code-breaking power of the government
`[36:36]` because of computer technology.
`[36:40]` I think the biggest threat to privacy that we face is Moore's law.
`[36:47]` It's the power of computing doubling every 18 months.
`[36:51]` The human population is not doubling every 18 months, but the ability for computers to
`[36:55]` keep track of us is.
`[36:59]` technology with computers behind them to analyze the surveillance data can give rise to an omniscient
`[37:06]` government and it's not clear that democracy can survive omniscience by the mid-1970s a trio of
`[37:15]` Stanford cryptographers Whitfield Diffie Martin Hellman and Ralph Merkel created a theoretical
`[37:22]` model for coded computer communications that eliminated the need for a secret distribution
`[37:27]` of keys. It also sought to offer powerful digital encryption to a perceived future of
`[37:33]` mass computer users, as a counterweight to government spying. Called public key cryptography,
`[37:41]` it gave each computer user a pair of different but related keys, one public and one private.
`[37:50]` Now say Bob wants to send a secret message to Alice. Bob would use Alice's public key
`[37:55]` for encoding, but only Alice could use her private key to decode the message. No physical
`[38:02]` transportation of secret keys. And now even Bob and Alice could theoretically have access
`[38:09]` to encrypted communications hidden from the most powerful investigative forces in government.
`[38:15]` Complete privacy. None of the other developments in cryptography that I have seen from the
`[38:22]` The beginning of codes and ciphers themselves has had the impact or has been as original
`[38:28]` a concept in cryptography as Whitfield Diffie's invention of public key cryptography.
`[38:36]` Within a year, three MIT researchers, Ronald Rivest, Adi Shamir, and Leonard Adelman, created
`[38:44]` a series of mathematical equations using prime numbers that made Diffie's theory practical.
`[38:51]` As a side note, a group of three scientists, James Ellis, Malcolm Williamson and Clifford
`[38:56]` Cox, working for Britain's government communications headquarters, apparently independently invented
`[39:03]` public key cryptography by the mid-1970s, just before Whitfield Diffie.
`[39:10]` Their work was classified, and it wasn't until 1997 that public acknowledgement of their
`[39:16]` feat was recognized.
`[39:19]` As for the three MIT inventors, they formed RSA Data Security in 1982, the first company
`[39:26]` to commercialize public key cryptography and launch secure e-commerce.
`[39:32]` The market we were going after in 1982 was the Internet market.
`[39:37]` But we were so premature because of this to be 15 years later that the World Wide Web
`[39:44]` took off.
`[39:46]` But the National Security Agency did notice and desperately tried to stop the spread of
`[39:51]` public cryptography.
`[39:55]` In 1986, the government stopped Lotus Development from exporting its software because it included
`[40:00]` RSA encryption.
`[40:04]` Then in 1993, the government investigated Phil Zimmerman for creating and distributing
`[40:09]` Pretty Good Privacy, a software that used RSA encryption over the Internet.
`[40:16]` PGP could be used on anybody's personal computer,
`[40:19]` instead of just the giant machines used by the government and businesses.
`[40:24]` There was a time when NSA held a monopoly on this kind of technology.
`[40:28]` But over the past 20 years, that monopoly has eroded,
`[40:32]` and now academic cryptography has reached parity with the NSA.
`[40:39]` And PGP uses the best of the academic cryptographic algorithms
`[40:43]` and has made it available to the masses.
`[40:45]` The National Security Agency was terrified that criminals were now accessing the world's most powerful, unbreakable encryption.
`[40:53]` The NSA believed PGP was severely compromising its code-breaking and intelligence-gathering abilities.
`[41:00]` Many times I've been worried about if criminals and terrorists were to use this technology.
`[41:05]` And I did a lot of soul-searching on it.
`[41:07]` I sometimes lost sleep thinking about it.
`[41:11]` but individual governments like Stalin or Hitler
`[41:15]` have killed more people than all of the criminals of the 20th century combined
`[41:20]` all over the world.
`[41:22]` By 1994, RSA encryption was widely used in most U.S. software
`[41:27]` and companies were pushing to export it.
`[41:30]` The government urgently sought a compromise by introducing the Clipper chip,
`[41:35]` a government chip that would be installed in communications devices.
`[41:39]` The chip, like a wiretap, could only be accessed by the government through a court order.
`[41:45]` Law enforcement could still eavesdrop on suspected criminals, but grant the public a level of privacy.
`[41:51]` People were concerned that it was voluntary to start out with, but that it would become mandatory, that it would be pushed upon them.
`[41:59]` They were concerned about loss of personal privacy.
`[42:02]` Do you want to control your private communications just by yourself, or do you want to be partners with the government?
`[42:08]` in controlling your private communication.
`[42:12]` And ultimately, the society has decided that we want to keep privacy to ourselves.
`[42:18]` After a five-year fight and a huge public backlash to the proposal,
`[42:23]` the Clinton administration granted businesses the right to export public cryptography.
`[42:29]` By 1996, after MIT had published PGP in a book and posted it on its website,
`[42:36]` The government backed off its investigation of Zimmerman.
`[42:41]` Even though government has intruded increasingly into private lives
`[42:46]` and has greater capacities these days to intercept communications,
`[42:52]` the growth of encryption has made it possible for individuals to protect themselves
`[42:58]` and protect their privacy in a way that had never been able to be done before.
`[43:03]` You know, historically there's been a battle between cryptographers who make the codes and cryptanalysts who break the codes.
`[43:10]` And Edgar Allan Poe once said that any code that a man can invent, another man can break.
`[43:18]` But it turns out that that's probably incorrect.
`[43:21]` The best mathematical evidence we have is that that's not the case.
`[43:25]` That, in fact, code makers do win over code breakers.
`[43:29]` Code breaking will last as long as people make mistakes.
`[43:33]` but the code systems themselves are getting better and better.
`[43:38]` They can't be broken now if properly used.
`[43:41]` So I think we're in an era of the slow death of the code breaker,
`[43:46]` much as I regret it in a way,
`[43:48]` and increasingly in the era of the code maker.
`[43:54]` But throughout history, new codes have always been declared unbreakable,
`[43:59]` only to be eventually broken.
`[44:01]` As codes enter the realm of quantum computers, human ingenuity will be tested once again.
`[44:08]` Only time will tell the victors.
← Return to Episode Dossier