Magic (cryptography)
   HOME

TheInfoList



OR:

Magic was an Allied
cryptanalysis Cryptanalysis (from the Greek ''kryptós'', "hidden", and ''analýein'', "to analyze") refers to the process of analyzing information systems in order to understand hidden aspects of the systems. Cryptanalysis is used to breach cryptographic sec ...
project during
World War II World War II or the Second World War, often abbreviated as WWII or WW2, was a world war that lasted from 1939 to 1945. It involved the vast majority of the world's countries—including all of the great powers—forming two opposin ...
. It involved the
United States Army The United States Army (USA) is the land service branch of the United States Armed Forces. It is one of the eight U.S. uniformed services, and is designated as the Army of the United States in the U.S. Constitution.Article II, section 2, cla ...
's
Signals Intelligence Service The Signal Intelligence Service (SIS) was the United States Army codebreaking division through World War II. It was founded in 1930 to compile codes for the Army. It was renamed the Signal Security Agency in 1943, and in September 1945, became th ...
(SIS) and the
United States Navy The United States Navy (USN) is the maritime service branch of the United States Armed Forces and one of the eight uniformed services of the United States. It is the largest and most powerful navy in the world, with the estimated tonnage ...
's
Communication Special Unit Communication (from la, communicare, meaning "to share" or "to be in relation with") is usually defined as the transmission of information. The term may also refer to the message communicated through such transmissions or the field of inquir ...
.


Codebreaking

Magic was set up to combine the US government's cryptologic capabilities in one organization dubbed the Research Bureau. Intelligence officers from the Army and Navy (and later civilian experts and technicians) were all under one roof. Although they worked on a series of codes and cyphers, their most important successes involved RED, BLUE, and PURPLE.


RED

In 1923, a US Navy officer acquired a stolen copy of the Secret Operating Code codebook used by the Japanese Navy during World War I. Photographs of the codebook were given to the cryptanalysts at the Research Desk and the processed code was kept in red-colored folders (to indicate its Top Secret classification). This code was called "RED".


BLUE

In 1930, the Japanese government created a more complex code that was codenamed BLUE, although RED was still being used for low-level communications. It was quickly broken by the Research Desk no later than 1932. US Military Intelligence
COMINT Signals intelligence (SIGINT) is intelligence-gathering by interception of '' signals'', whether communications between people (communications intelligence—abbreviated to COMINT) or from electronic signals not directly used in communication ...
listening stations began monitoring command-to-fleet, ship-to-ship, and land-based communications.


PURPLE

After Japan's ally Germany declared war in the fall of 1939, the German government began sending technical assistance to upgrade their communications and cryptography capabilities. One part was to send them modified Enigma machines to secure Japan's high-level communications with Germany. The new code, codenamed PURPLE (from the color obtained by mixing red and blue), was baffling. PURPLE, like Enigma, began its communications with the same line of code but then became an unfathomable jumble. Codebreakers tried to break PURPLE communiques by hand but found they could not. Then the codebreakers realized that it was not a manual additive or substitution code like RED and BLUE, but a machine-generated code similar to Germany's Enigma cipher. Decoding was slow and much of the traffic was still hard to break. By the time the traffic was decoded and translated, the contents were often out of date. A reverse-engineered machine created in 1939 by a team of technicians led by
William Friedman William Frederick Friedman (September 24, 1891 – November 12, 1969) was a US Army cryptographer who ran the research division of the Army's Signal Intelligence Service (SIS) in the 1930s, and parts of its follow-on services into the 1950s. In ...
and
Frank Rowlett Frank Byron Rowlett (May 2, 1908 – June 29, 1998) was an American cryptologist. Life and career Rowlett was born in Rose Hill, Lee County, Virginia and attended Emory & Henry College in Emory, Virginia. In 1929 he received a bachelor's d ...
could decrypt some of the PURPLE code by replicating some of the settings of the Japanese Enigma machines. This accelerated decoding and the addition of more translators on staff in 1942 made it easier and quicker to decipher the traffic intercepted.


PURPLE traffic

The Japanese Foreign Office used a cipher machine to encrypt its diplomatic messages. The machine was called "
PURPLE Purple is any of a variety of colors with hue between red and blue. In the RGB color model used in computer and television screens, purples are produced by mixing red and blue light. In the RYB color model historically used by painters, pu ...
" by U.S. cryptographers. A message was typed into the machine, which enciphered and sent it to an identical machine. The receiving machine could decipher the message only if set to the correct settings, or keys. American cryptographers built a machine that could decrypt these messages. The PURPLE machine itself was first used by Japan in 1940. U.S. and British cryptographers had broken some PURPLE traffic well before the
attack on Pearl Harbor The attack on Pearl HarborAlso known as the Battle of Pearl Harbor was a surprise military strike by the Imperial Japanese Navy Air Service upon the United States against the naval base at Pearl Harbor in Honolulu, Territory of Hawaii, j ...
. However, the PURPLE machines were used only by the Foreign Office to carry diplomatic traffic to its embassies. The Japanese Navy used a completely different crypto-system, known as
JN-25 The vulnerability of Japanese naval codes and ciphers was crucial to the conduct of World War II, and had an important influence on foreign relations between Japan and the west in the years leading up to the war as well. Every Japanese code was e ...
. U.S. analysts discovered no hint in PURPLE of the impending Japanese attack on Pearl Harbor. Nor could they, as the Japanese were very careful not to discuss their plan in Foreign Office communications. No detailed information about the planned attack was even available to the Japanese Foreign Office, as that agency was regarded by the military, particularly its more nationalist members, as insufficiently "reliable". U.S. access to private Japanese diplomatic communications (even the most secret ones) was less useful than it might otherwise have been because policy in prewar Japan was controlled largely by military groups like the
Imperial Way Faction The ''Kōdōha'' or was a political faction in the Imperial Japanese Army active in the 1920s and 1930s. The ''Kōdōha'' sought to establish a military government that promoted totalitarian, militaristic and aggressive expansionistic ideals, ...
, and not by the Foreign Office. The Foreign Office itself deliberately withheld from its embassies and consulates much of the information it did have, so the ability to read PURPLE messages was less than definitive regarding Japanese tactical or strategic military intentions. U.S. cryptographers (see Station HYPO) had decrypted and translated the 14-part Japanese diplomatic message breaking off ongoing negotiations with the U.S. at 1 p.m. Washington time on 7 December 1941, even before the Japanese Embassy in Washington could do so. As a result of the deciphering and typing difficulties at the embassy, the note was delivered late to American Secretary of State
Cordell Hull Cordell Hull (October 2, 1871July 23, 1955) was an American politician from Tennessee and the longest-serving U.S. Secretary of State, holding the position for 11 years (1933–1944) in the administration of President Franklin Delano Roosevelt ...
. When the two Japanese diplomats finally delivered the note, Hull had to pretend to be reading it for the first time, even though he already knew about the attack on Pearl Harbor. Throughout the war, the Allies routinely read both German and Japanese cryptography. The Japanese Ambassador to Germany, General
Hiroshi Ōshima Baron was a general in the Imperial Japanese Army, Japanese ambassador to Germany before and during World War II and (unwittingly) a major source of communications intelligence for the Allies. His role was perhaps best summed up by General Geo ...
, often sent priceless German military information to Tokyo. This information was routinely intercepted and read by Roosevelt, Churchill and Eisenhower. According to Lowman, "The Japanese considered the PURPLE system absolutely unbreakable… Most went to their graves refusing to believe the ipherhad been broken by analytic means… They believed someone had betrayed their system."


Distribution prior to Pearl Harbor

Even so, the diplomatic information was of limited value to the U.S. because of its manner and its description. "Magic" was distributed in such a way that many policy-makers who had need of the information in it knew nothing of it, and those to whom it actually was distributed (at least before
Pearl Harbor Pearl Harbor is an American lagoon harbor on the island of Oahu, Hawaii, west of Honolulu. It was often visited by the Naval fleet of the United States, before it was acquired from the Hawaiian Kingdom by the U.S. with the signing of the Re ...
) saw each message only briefly, as the courier stood by to take it back, and in isolation from other messages (no copies or notes being permitted). Before Pearl Harbor, they saw only those decrypts thought "important enough" by the distributing
Army An army (from Old French ''armee'', itself derived from the Latin verb ''armāre'', meaning "to arm", and related to the Latin noun ''arma'', meaning "arms" or "weapons"), ground force or land force is a fighting force that fights primarily on ...
or
Navy A navy, naval force, or maritime force is the branch of a nation's armed forces principally designated for naval warfare, naval and amphibious warfare; namely, lake-borne, riverine, littoral zone, littoral, or ocean-borne combat operations and ...
officers. Nonetheless, being able to read PURPLE messages gave the
Allies An alliance is a relationship among people, groups, or states that have joined together for mutual benefit or to achieve some common purpose, whether or not explicit agreement has been worked out among them. Members of an alliance are called ...
a great advantage in the war. For instance, the Japanese ambassador to
Germany Germany,, officially the Federal Republic of Germany, is a country in Central Europe. It is the second most populous country in Europe after Russia, and the most populous member state of the European Union. Germany is situated betwe ...
, Baron
Hiroshi Ōshima Baron was a general in the Imperial Japanese Army, Japanese ambassador to Germany before and during World War II and (unwittingly) a major source of communications intelligence for the Allies. His role was perhaps best summed up by General Geo ...
, produced long reports for
Tokyo Tokyo (; ja, 東京, , ), officially the Tokyo Metropolis ( ja, 東京都, label=none, ), is the capital and largest city of Japan. Formerly known as Edo, its metropolitan area () is the most populous in the world, with an estimated 37.468 ...
which were enciphered on the PURPLE machine. They included reports on personal discussions with
Adolf Hitler Adolf Hitler (; 20 April 188930 April 1945) was an Austrian-born German politician who was dictator of Nazi Germany, Germany from 1933 until Death of Adolf Hitler, his death in 1945. Adolf Hitler's rise to power, He rose to power as the le ...
and a report on a tour of the invasion defenses in Northern
France France (), officially the French Republic ( ), is a country primarily located in Western Europe. It also comprises of Overseas France, overseas regions and territories in the Americas and the Atlantic Ocean, Atlantic, Pacific Ocean, Pac ...
(including the
D-Day The Normandy landings were the landing operations and associated airborne operations on Tuesday, 6 June 1944 of the Allied invasion of Normandy in Operation Overlord during World War II. Codenamed Operation Neptune and often referred to as D ...
invasion beaches). General Marshall said that Ōshima was "our main basis of... information regarding Hitler's intentions in Europe".


Dewey and Marshall

During the 1944 election,
Thomas Dewey Thomas Edmund Dewey (March 24, 1902 – March 16, 1971) was an American lawyer, prosecutor, and politician who served as the 47th governor of New York from 1943 to 1954. He was the Republican candidate for president in 1944 and 1948: although ...
threatened to make Pearl Harbor a campaign issue, until General Marshall sent him a personal letter which said, in part: :To explain the critical nature of this set-up, which would be wiped out in an instant if the least suspicion were aroused regarding it, the Battle of Coral Sea was based on deciphered messages and therefore our few ships were in the right place at the right time. Further, we were able to concentrate our limited forces to meet their naval advance on Midway when otherwise we almost certainly would have been some out of place. We had full information on the strength of their forces. Dewey promised not to raise the issue, and kept his word.


Post-war debates

The break into the PURPLE system, and into Japanese messages generally, was the subject of acrimonious hearings in Congress post-
World War II World War II or the Second World War, often abbreviated as WWII or WW2, was a world war that lasted from 1939 to 1945. It involved the vast majority of the world's countries—including all of the great powers—forming two opposin ...
in connection with an attempt to decide who, if anyone, had allowed the disaster at Pearl Harbor to happen and who therefore should be blamed. During those hearings the Japanese learned, for the first time, the PURPLE cypher system had been broken. They had been continuing to use it, even after the War, with the encouragement of the American Occupation Government. Much confusion over who in
Washington Washington commonly refers to: * Washington (state), United States * Washington, D.C., the capital of the United States ** A metonym for the federal government of the United States ** Washington metropolitan area, the metropolitan area centered o ...
or
Hawaii Hawaii ( ; haw, Hawaii or ) is a state in the Western United States, located in the Pacific Ocean about from the U.S. mainland. It is the only U.S. state outside North America, the only state that is an archipelago, and the only stat ...
knew what and when, especially as "we were decrypting their messages," has led some to conclude "someone in Washington" knew about the
Pearl Harbor Pearl Harbor is an American lagoon harbor on the island of Oahu, Hawaii, west of Honolulu. It was often visited by the Naval fleet of the United States, before it was acquired from the Hawaiian Kingdom by the U.S. with the signing of the Re ...
attack before it happened, and, since Pearl Harbor was not expecting to be attacked, the "failure to warn Hawaii one was coming must have been deliberate, since it could hardly have been mere oversight". However, PURPLE was a diplomatic, not a military code. Thus, only inferences could be drawn from PURPLE as to specific Japanese military actions.


History

When PURPLE was broken by the U.S. Army's
Signals Intelligence Service The Signal Intelligence Service (SIS) was the United States Army codebreaking division through World War II. It was founded in 1930 to compile codes for the Army. It was renamed the Signal Security Agency in 1943, and in September 1945, became th ...
(SIS), several problems arose for the Americans: who would get the decrypts, which decrypts, how often, under what circumstances, and crucially (given
interservice rivalries Interservice rivalry is the rivalry between different branches of a country's armed forces, in other words the competition for limited resources among a nation's land, naval, coastal, air, and space forces. The term also applies to the riva ...
) who would do the delivering. Both the U.S. Navy and Army were insistent they alone handle all decrypted traffic delivery, especially to highly placed policy makers in the U.S. Eventually, after much to-ing and fro-ing, a compromise was reached: the Army would be responsible for the decrypts on one day, and the Navy the next. The distribution list eventually included some — but not all — military intelligence leaders in Washington and elsewhere, and some — but, again, not all — civilian policy leaders in Washington. The eventual routine for distribution included the following steps: * the duty officer (Army or Navy, depending on the day) would decide which decrypts were significant or interesting enough to distribute * they would be collected, locked into a briefcase, and turned over to a relatively junior officer (not always cleared to read the decrypts) who would 'make the rounds' to the appropriate offices. * no copies of any decrypts were left with anyone on the list. The recipient would be allowed to read the translated decrypt, in the presence of the distributing officer, and was required to return it immediately upon finishing. Before the beginning of the second week in December 1941, that was the last time anyone on the list saw that particular decrypt.


Decryption process

There were several prior steps needed before any decrypt was ready for distribution: # ''Interception''. The Japanese Foreign Office used both wireless transmission and cables to communicate with its off shore units. Wireless transmission was intercepted (if possible) at any of several listening stations (
Hawaii Hawaii ( ; haw, Hawaii or ) is a state in the Western United States, located in the Pacific Ocean about from the U.S. mainland. It is the only U.S. state outside North America, the only state that is an archipelago, and the only stat ...
,
Guam Guam (; ch, Guåhan ) is an organized, unincorporated territory of the United States in the Micronesia subregion of the western Pacific Ocean. It is the westernmost point and territory of the United States (reckoned from the geographic cent ...
,
Bainbridge Island Bainbridge Island is a city and island in Kitsap County, Washington. It is located in Puget Sound. The population was 23,025 at the 2010 census and an estimated 25,298 in 2019, making Bainbridge Island the second largest city in Kitsap County. ...
in
Washington Washington commonly refers to: * Washington (state), United States * Washington, D.C., the capital of the United States ** A metonym for the federal government of the United States ** Washington metropolitan area, the metropolitan area centered o ...
state, Dutch Harbor on an Alaska island, etc.) and the raw cypher groups were forwarded to Washington, D.C. Eventually, there were decryption stations (including a copy of the Army's PURPLE machine) in the Philippines as well. Cable traffic was (for many years before late 1941) collected at cable company offices by a military officer who made copies and started them to Washington. Cable traffic in Hawaii was not intercepted due to legal concerns until David Sarnoff of RCA agreed to allow it during a visit to Hawaii the first week of December 1941. At one point, intercepts were being mailed to (Army or Navy) Intelligence from the field. # ''Deciphering''. The raw intercept was deciphered by either the Army or the Navy (depending on the day). Deciphering was usually successful as the cipher had been broken. # ''Translation''. Having obtained the plain text, in Latin letters, it was translated. Because the Navy had more Japanese-speaking officers, much of the burden of translation fell onto the Navy. And because Japanese is a difficult language, with meaning highly dependent upon context, effective translation required not only fluent Japanese, but considerable knowledge of the context within which the message was sent. # ''Evaluation''. The translated decrypt had to be evaluated for its intelligence content. For example, is the ostensible content of the message meaningful? If it is, for instance, part of a power contest within the Foreign Office or some other part of the Japanese government, its meaning and implications would be quite different from a simple informational or instructional message to an Embassy. Or, might it be another message in a series whose meaning, taken together, is more than the meaning of any individual message. Thus, the fourteenth message to an Embassy instructing that Embassy to instruct Japanese merchant ships calling at that country to return to home waters before, say, the end of November would be more significant than a single such message meant for a single ship or port. Only after having evaluated a translated decrypt for its intelligence value could anyone decide whether it deserved to be distributed. In the period before the attack on Pearl Harbor, the material was handled awkwardly and inefficiently, and was distributed even more awkwardly. Nevertheless, the extraordinary experience of reading a foreign government's most closely held communications, sometimes even before the intended recipient, was astonishing. It was so astonishing, someone (possibly President Roosevelt) called it magic. The name stuck.


Executive Order 9066

One aspect of Magic remains controversial to this day — the amount of involvement the intercepts played in the issuing of
United States Executive Order 9066 Executive Order 9066 was a United States presidential executive order signed and issued during World War II by United States president Franklin D. Roosevelt on February 19, 1942. This order authorized the secretary of war to prescribe certain ...
on February 19, 1942, and subsequent Executive Order 9102 on March 18, which led to the creation of the Wartime Relocation Authority (WRA). This is often confused with the issue of internment, which was actually handled by the Justice Department's Immigration and Naturalization Service (INS) and affected all citizens of countries at war with the United States in any location. Internment of "enemy aliens" by the U.S. government began two months prior to Executive Order 9066 on December 8, 1941, immediately after the attack at Pearl Harbor and included Germans and Italians, and not just the Japanese living on the U.S. West Coast. David Lowman in his book ''MAGIC: the Untold Story'' reports that the primary justification for the Japanese-American relocations and internments was to protect against espionage and sabotage, because Magic could not be mentioned during the war. Those defending the decision to evacuate and relocate when seen in context, notably blogger and investigative reporter
Michelle Malkin Michelle Malkin (; Maglalang; born October 20, 1970) is an American conservative political commentator. She was a Fox News contributor and in May 2020 joined Newsmax TV. Malkin has written seven books and founded the conservative websites Tw ...
, point to Magic intercepts as partial justification for EO 9066. Malkin cites 1984 testimony of the Undersecretary with the most Magic knowledge, who statedJAAWR Hearings (1984)
/ref> that Magic "was a very important factor" in their considerations. Extensive additional primary source documents are cited in Malkin's book ''In Defense of Internment'' to argue that Magic intercepts discuss the development of a spy ring among Japanese Americans by the Japanese consulates, provide the type of espionage data being sent to Japan, and much more which raised a suspicion that many thousands in the Japanese American community were an espionage risk, including members of Kibei, Issei and Nisei. In 1988,
Congress A congress is a formal meeting of the representatives of different countries, constituent states, organizations, trade unions, political parties, or other groups. The term originated in Late Middle English to denote an encounter (meeting of a ...
passed and President
Ronald Reagan Ronald Wilson Reagan ( ; February 6, 1911June 5, 2004) was an American politician, actor, and union leader who served as the 40th president of the United States from 1981 to 1989. He also served as the 33rd governor of California from 1967 ...
signed legislation that apologized for the internment on behalf of the U.S. government. The legislation said that government actions were based on "race prejudice, war hysteria, and a failure of political leadership".100th Congress, S. 1009
reproduced at
Internment archives. Retrieved September 19, 2006.
The hearings that produced this decision did not take into account the Magic intercepts. The following is the actual text of several Magic intercepts translated into English before and during the war and declassified and made public in 1978 by the U.S. government (''The Magic Background of Pearl Harbor'':, Government Printing Office, 8 volumes)


Tokyo to Washington

;Magic intercept Tokyo to Washington #44 – Jan 30, 1941 Intercept dated January 30, 1941 and noted as translated 2-7-41 Numbered #44


Japanese U.S. consulates to Tokyo

Throughout the rest of 1941, some of the messages between Tokyo and its embassies and consulates continued to be intercepted. In response to the ordered shift from propaganda efforts to espionage collection, the Japanese consulates throughout the western hemisphere reported their information normally through the use of diplomatic channels, but when time-sensitive through the use of PURPLE encoded messages. This provided vital clues to their progress directly to the U.S. President and his top advisers. Intercepts in May 1941 from the consulates in Los Angeles and Seattle report that the Japanese were having success in obtaining information and cooperation from "second generation" Japanese Americans and others. ;Magic intercept LA to Tokyo #067 - May 9, 1941 Intercept dated May 9, 1941 and translated 5-19-41 Numbered #067 ;Magic intercept Seattle to Tokyo #45 - May 11, 1941 Intercept dated May 11, 1941 and translated 6-9-41 Numbered # 45


Access by Roosevelt's cabinet

These intercepts plus other reports from the
FBI The Federal Bureau of Investigation (FBI) is the domestic Intelligence agency, intelligence and Security agency, security service of the United States and its principal Federal law enforcement in the United States, federal law enforcement age ...
and the
Office of Naval Intelligence The Office of Naval Intelligence (ONI) is the military intelligence agency of the United States Navy. Established in 1882 primarily to advance the Navy's modernization efforts, it is the oldest member of the U.S. Intelligence Community and serves ...
counter-espionage efforts, the TACHIBANA espionage case during summer 1941, FBI efforts against Japanese
Yakuza , also known as , are members of transnational organized crime syndicates originating in Japan. The Japanese police and media, by request of the police, call them , while the ''yakuza'' call themselves . The English equivalent for the term ...
throughout the 1930s along the
West Coast West Coast or west coast may refer to: Geography Australia * Western Australia *Regions of South Australia#Weather forecasting, West Coast of South Australia * West Coast, Tasmania **West Coast Range, mountain range in the region Canada * Britis ...
(the TOKOYO and TOYO CLUBs) were all available only to the most senior leaders in the Roosevelt cabinet. Even
J. Edgar Hoover John Edgar Hoover (January 1, 1895 – May 2, 1972) was an American law enforcement administrator who served as the first Director of the Federal Bureau of Investigation (FBI). He was appointed director of the Bureau of Investigation  ...
, Director of the FBI, was not privy to the existence of Magic intelligence.


Opposing viewpoint

Those who consider that Executive Order 9066 regarding
Japanese American internment Japanese may refer to: * Something from or related to Japan, an island country in East Asia * Japanese language, spoken mainly in Japan * Japanese people, the ethnic group that identifies with Japan through ancestry or culture ** Japanese diaspor ...
was not based on Magic intercepts, argue: * the commanding officer on the West coast, Lt. Gen. J. L. DeWitt, was not on the Magic intercept list, * his superior, Secretary of War Henry Stimson, was on the intercept list, and * Stimson requested justification for the relocation program from DeWitt. * If Magic intercepts provided justification, why ask DeWitt for further justification? One theory is that Stimson wanted DeWitt to provide justifications that could be made public, because the Magic intercepts could not be made public. The issue was inflamed due to the release of Malkin's 2004 book, ''
In Defense of Internment ''In Defense of Internment: The Case for 'Racial Profiling' in World War II and the War on Terror'' () is a 2004 book written by conservative American political commentator Michelle Malkin. Malkin defends the internment of Japanese Americans in th ...
'', in which the Magic intercepts play a major role in the defense of her thesis.


Other Japanese ciphers

PURPLE was an enticing, but quite tactically limited, window into Japanese planning and policy because of the peculiar nature of Japanese policy making prior to the War (see above). Early on, a better tactical window was the Japanese Fleet Code (an encoded cypher), called
JN-25 The vulnerability of Japanese naval codes and ciphers was crucial to the conduct of World War II, and had an important influence on foreign relations between Japan and the west in the years leading up to the war as well. Every Japanese code was e ...
by U.S. Navy cryptanalysts. Breaking into the version in use in the months after December 7, 1941 provided enough information to lead to
U.S. The United States of America (U.S.A. or USA), commonly known as the United States (U.S. or US) or America, is a country primarily located in North America. It consists of 50 states, a federal district, five major unincorporated territori ...
naval victories in the battles of the
Coral Sea The Coral Sea () is a marginal sea of the South Pacific off the northeast coast of Australia, and classified as an interim Australian bioregion. The Coral Sea extends down the Australian northeast coast. Most of it is protected by the Fre ...
and Midway, stopping the initial Japanese advances to the south and eliminating the bulk of Japanese naval air power. Later, broken JN-25 traffic provided the schedule and routing of the plane Admiral
Isoroku Yamamoto was a Marshal Admiral of the Imperial Japanese Navy (IJN) and the commander-in-chief of the Combined Fleet during World War II until he was killed. Yamamoto held several important posts in the IJN, and undertook many of its changes and reor ...
would be flying in during an inspection tour in the southwest Pacific, giving
USAAF The United States Army Air Forces (USAAF or AAF) was the major land-based aerial warfare service component of the United States Army and ''de facto'' aerial warfare service branch of the United States during and immediately after World War II ...
pilots a chance to ambush the officer who had conceived the Pearl Harbor attack. Later still, access to Japanese Army messages from decrypts of Army communications traffic assisted in planning the island hopping campaign to the
Philippines The Philippines (; fil, Pilipinas, links=no), officially the Republic of the Philippines ( fil, Republika ng Pilipinas, links=no), * bik, Republika kan Filipinas * ceb, Republika sa Pilipinas * cbk, República de Filipinas * hil, Republ ...
and beyond. Another source of information was the Japanese Military Attaché code (known as JMA to the Allies) introduced in 1941. This was a fractionating transposition system based on two-letter code groups which stood for common words and phrases. The groups were written in a square grid according to an irregular pattern and read off vertically, similar to a disrupted columnar transposition. Then the letters were superenciphered using a pre-arranged table of alphabets. This system was broken by
John Tiltman Brigadier John Hessell Tiltman, (25 May 1894 – 10 August 1982) was a British Army officer who worked in intelligence, often at or with the Government Code and Cypher School (GC&CS) starting in the 1920s. His intelligence work was largely conn ...
at
Bletchley Park Bletchley Park is an English country house and estate in Bletchley, Milton Keynes ( Buckinghamshire) that became the principal centre of Allied code-breaking during the Second World War. The mansion was constructed during the years following ...
in 1942.


Other claimed breaks into PURPLE

The 1992 book ''The Sword and the Shield: The Mitrokhin Archive and the Secret History of the KGB'', by Christopher Andrew, based on the
Mitrokhin Archive The "Mitrokhin Archive" is a collection of handwritten notes which were secretly made by the KGB archivist Vasili Mitrokhin during the thirty years in which he served as a KGB archivist in the foreign intelligence service and the First Chief Direc ...
smuggled out of
Russia Russia (, , ), or the Russian Federation, is a List of transcontinental countries, transcontinental country spanning Eastern Europe and North Asia, Northern Asia. It is the List of countries and dependencies by area, largest country in the ...
in the early 1990s by a
KGB The KGB (russian: links=no, lit=Committee for State Security, Комитет государственной безопасности (КГБ), a=ru-KGB.ogg, p=kəmʲɪˈtʲet ɡəsʊˈdarstvʲɪn(ː)əj bʲɪzɐˈpasnəsʲtʲɪ, Komitet gosud ...
archivist, contains information about wartime Soviet knowledge of Japanese enciphered transmissions. It claims that the
Soviets Soviet people ( rus, сове́тский наро́д, r=sovyétsky naród), or citizens of the USSR ( rus, гра́ждане СССР, grázhdanye SSSR), was an umbrella demonym for the population of the Soviet Union. Nationality policy in th ...
independently broke into Japanese PURPLE traffic (as well as the Red predecessor machine). It claims that decrypted PURPLE messages contributed to the decision by Stalin to move troops from Far Eastern Asia to the area around
Moscow Moscow ( , US chiefly ; rus, links=no, Москва, r=Moskva, p=mɐskˈva, a=Москва.ogg) is the capital and largest city of Russia. The city stands on the Moskva River in Central Russia, with a population estimated at 13.0 million ...
for the counterattack against Germany in December 1941, as the messages convinced the Soviet government that there would not be a Japanese attack.


How secret was Magic?

Public notice had actually been served that Japanese cryptography was dangerously inadequate by the
Chicago Tribune The ''Chicago Tribune'' is a daily newspaper based in Chicago, Illinois, United States, owned by Tribune Publishing. Founded in 1847, and formerly self-styled as the "World's Greatest Newspaper" (a slogan for which WGN radio and television ar ...
, which published a series of stories just after Midway, starting on 7 June 1942, which claimed (correctly) that victory was due in large part to the U.S. breaking into Japanese crypto systems (in this case, the JN-25 cypher, though which system(s) had been broken was not mentioned in the newspaper stories). The ''Tribune'' claimed the story was written by
Stanley Johnston Stanley Johnston (1900 – September 13, 1962) was an Australian-American journalist who, as a correspondent during World War II, wrote a story for the ''Chicago Tribune'' that inadvertently revealed the extent of American code-breaking act ...
from his own knowledge (and ''
Jane's Jane's Information Group, now styled Janes, is a global open-source intelligence company specialising in military, national security, aerospace and transport topics, whose name derives from British author Fred T. Jane. History Jane's Informat ...
'').
Ronald Lewin George Ronald Lewin CBE (11 October 1914 – 6 January 1984), later known as Ronald Lewin, was a British officer, publishing editor, radio producer and military historian. Education Lewin attended University of Oxford at The Queens College on an ...
points out that the story repeats the layout and errors of a signal from Admiral Nimitz which Johnston saw while on the transport ''Barnett''. Nimitz was reprimanded by Admiral King for sending the dispatch to Task Force commanders on a channel available to nearly all ships. The ''Lexington's'' executive officer, Commander Morton T. Seligman was assigned to shore duty and retired early. However, neither the Japanese nor anyone who might have told them seem to have noticed either the Tribune coverage, or the stories based on the Tribune account published in other U.S. papers. Nor did they notice announcements made on the floor of the
United States Congress The United States Congress is the legislature of the federal government of the United States. It is bicameral, composed of a lower body, the House of Representatives, and an upper body, the Senate. It meets in the U.S. Capitol in Washing ...
to the same effect. There were no changes in Japanese cryptography connected with those newspaper accounts or Congressional disclosures. Alvin Kernan was an aviation ordnanceman on board the aircraft carriers and the during the war. During that time, he was awarded the
Navy Cross The Navy Cross is the United States Navy and United States Marine Corps' second-highest military decoration awarded for sailors and marines who distinguish themselves for extraordinary heroism in combat with an armed enemy force. The medal is eq ...
. In his book ''Crossing the Line'', he states that when the carrier returned to Pearl Harbor to resupply before the
Battle of Midway The Battle of Midway was a major naval battle in the Pacific Theater of World War II that took place on 4–7 June 1942, six months after Japan's attack on Pearl Harbor and one month after the Battle of the Coral Sea. The U.S. Navy under Adm ...
, the crew knew that the Japanese code had been broken and that U.S. naval forces were preparing to engage the Japanese fleet at Midway. He insists that he "…exactly remembers the occasion on which I was told, with full details about ships and dates…" despite the later insistence that the breaking of the code was kept secret. U.S. Navy Commander I.J. Galantin, who retired as an Admiral, refers several times to Magic in his 1988 book about his Pacific theater war patrols as captain of the U.S. submarine . However, Galantin refers to Magic as "Ultra" which was actually the name given to the breaking of the German code. Upon receiving one message from Pacific Fleet command, directing him off normal station to intercept Japanese vessels due to a Magic message, Galantin writes. "I had written my night orders carefully. I made no reference to Ultra and stressed only the need to be very alert for targets in this fruitful area". Galantin had previously mentioned in his book that all submarine captains were aware of "Ultra" (Magic). In addition, Army Chief of Staff
George C. Marshall George Catlett Marshall Jr. (December 31, 1880 – October 16, 1959) was an American army officer and statesman. He rose through the United States Army to become Chief of Staff of the US Army under Presidents Franklin D. Roosevelt and Harry ...
discovered early in the war that Magic documents were being widely read at the White House, and that "…at one time over 500 people were reading messages we had intercepted from the Japanese… Everyone seemed to be reading them" .


Fiction

Neal Stephenson Neal Town Stephenson (born October 31, 1959) is an American writer known for his works of speculative fiction. His novels have been categorized as science fiction, historical fiction, cyberpunk, postcyberpunk, and baroque. Stephenson's work exp ...
's novel ''
Cryptonomicon ''Cryptonomicon'' is a 1999 novel by American author Neal Stephenson, set in two different time periods. One group of characters are World War II-era Allied codebreakers and tactical-deception operatives affiliated with the Government Code an ...
'' includes a fictionalized version of Magic, with the Japanese cryptosystem being named "Indigo" rather than "PURPLE".
James Bond The ''James Bond'' series focuses on a fictional British Secret Service agent created in 1953 by writer Ian Fleming, who featured him in twelve novels and two short-story collections. Since Fleming's death in 1964, eight other authors have ...
is given the products of the fictionalized "MAGIC 44" decryption programme in '' You Only Live Twice'' as a bargaining chip when he is deployed to negotiate for intelligence concessions from Tiger Tanaka, head of Japanese intelligence. The
W.E.B. Griffin William Edmund Butterworth III (November 10, 1929 – February 12, 2019), better known by his pen name W. E. B. Griffin, was an American writer of military and detective fiction with 59 novels in seven series published under that name. Twenty-one ...
series ''The Corps'' is a fictionalized account of
United States Navy The United States Navy (USN) is the maritime service branch of the United States Armed Forces and one of the eight uniformed services of the United States. It is the largest and most powerful navy in the world, with the estimated tonnage ...
and
Marine Corps Marines, or naval infantry, are typically a military force trained to operate in littoral zones in support of naval operations. Historically, tasks undertaken by marines have included helping maintain discipline and order aboard the ship (refle ...
intelligence operations in the Pacific Theater during World War II. Many of the main characters in the novels, both fictional and historical, have access to and use intelligence from Magic.


See also

*
Japanese army and diplomatic codes Japanese army and diplomatic codes. This article is on Japanese army and diplomatic ciphers and codes used up to and during World War II, to supplement the article on Japanese naval codes. The diplomatic codes were significant militarily, particul ...
*
Japanese naval codes The vulnerability of Japanese naval codes and ciphers was crucial to the conduct of World War II, and had an important influence on foreign relations between Japan and the west in the years leading up to the war as well. Every Japanese code was e ...
*
Ultra (cryptography) adopted by British military intelligence in June 1941 for wartime signals intelligence obtained by breaking high-level encrypted enemy radio and teleprinter communications at the Government Code and Cypher School (GC&CS) at Bletchley Park. '' ...


Footnotes


Sources

* * * * (American edition) ** (British edition) * *


Further reading

* * * * * {{refend History of cryptography Internment of Japanese Americans Signals intelligence of World War II