ArticleslgStudy

computer science

Type A Cipher Machine

Type A Cipher Machine is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Type A Cipher Machine rather than just read about it. In short: In the history of cryptography, 91-shiki ōbun injiki (九一式欧文印字機; "System 91 Typewriter for European Characters") or Angōki Taipu-A (暗号機 タイプA; Type A Cipher Machine), codenamed Red by the United States, was a diplomatic cryptographic machine used by the Japanese Foreign Office before and during World War II. A relatively simple device, it was quickly broken by western cryptographers.

Type A Cipher Machine — main illustration
Type A Cipher Machine — illustration

Key takeaways

  • Type A Cipher Machine belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Type A Cipher Machine to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Type A Cipher Machine from memory before moving on to harder problems.

Reference excerpt

In the history of cryptography, 91-shiki ōbun injiki (九一式欧文印字機; "System 91 Typewriter for European Characters") or Angōki Taipu-A (暗号機 タイプA; Type A Cipher Machine), codenamed Red by the United States, was a diplomatic cryptographic machine used by the Japanese Foreign Office before and during World War II. A relatively simple device, it was quickly broken by western cryptographers. The Red cipher was succeeded by the Type B "Purple" machine (九七式印字機, 97-shiki ōbun injiki; "System 97 Typewriter for European Characters") which used some of the same principles. Parallel usage of the two systems assisted in the breaking of the Purple system. The Red cipher should not be confused with the Red naval code, which was used by the Imperial Japanese Navy between the wars. The latter was a codebook system, not a cipher.

Operation The Red machine encrypted and decrypted texts written in Latin characters (alphabetic only) for transmission through the cable services. Per International Telegraph Union regulations at the time, pronounceable words in telegrams were charged a lower rate than unpronounceable code groups; therefore the machine produced telegraph code by enciphering the vowels separately from the consonants, so that the text remained a series of syllables. (The letter "Y" was treated as a vowel.) The "sixes and twenties" effect (as American analysts referred to it) was a major weakness which the Japanese continued in the Purple system. Encryption itself was provided through a single half-rotor; input contacts were through slip rings, each of which connected to a single output contact on the rotor. Since both the vowels and consonants were passed through the same rotor, it had sixty contacts (the least common multiple of six and twenty); wiring ensured that the two groups were kept separate. The slip rings were connected to the input keyboard through a plugboard; again this was organized to keep the vowels and consonants separate. The rotor turned at least one step after each letter. The amount of rotation was controlled by the break wheel, which was connected to the rotor, and which had up to forty-seven pins in it. Up to eleven of these pins (in a predetermined set of positions) were removable; in practice, from four to six pins were removed. Rotation of the wheel stopped when the next pin was reached; therefore, if the next pin were removed, the rotor would advance two places instead of one. The irregular pattern of rotation produced an Alberti cipher.

History The vulnerability of Japanese code systems was made public in 1931 when Herbert Yardley published The American Black Chamber, a popular account of his code breaking activities for the US government in which he discussed the breaking of Japanese codes and their use during the Washington Naval Conference. These revelations prompted Japanese to look into machine ciphers. The system was introduced in 1930–1931 (the 91 in the designation refers to the Japanese imperial year 2591), using a reverse-engineered version of a machine supplied by the firm of Boris Hagelin. Hagelin's most sophisticated systems were rotor machines similar to those used in World War II, but as he did not trust the Japanese to honor his patents, he sent a more primitive device designed by Arvid Damm instead. It was this machine which the Japanese used as the basis for their design; the separate encryption of the vowels, however, was strictly a Japanese contribution.

The code was broken successfully by three independently working groups. The British solution came first, with Hugh Foss and Oliver Strachey working out the code in 1934, and Harold Kenworthy's shop producing a replica, the "J machine", a year later. American attempts to break the system waited until 1935. In the Army SIS group, the system was broken by Frank Rowlett and Solomon Kullback; for the navy, Agnes Driscoll is generally credited. (She actually solved the Orange (or M-1) cipher used by naval attaches, but as it turned out the two systems were essentially the same.) The Americans also constructed a replica machine to expedite solutions; this machine had two half-rotors to solve the vowels and consonants separately. The SIS group originally referred to it simply as the "Japanese code machine", but decided that so descriptive a term was a security risk; as it was the first Japanese machine cipher solved, they decided to start at the beginning of the spectrum, and named it "RED". The PURPLE machine began to replace the RED system in 1938, but initial installations were at major posts; less important embassies and consulates continued to use the old system. This was one of many deficiencies in Japanese use of encryption that helped make the PURPLE system vulnerable to cracking, for now there was some identical traffic on both systems, which allowed cribbing. A far more serious deficiency was that the PURPLE machine maintained the "sixes/twenties" division, even though the RED machines had since been modified to allow any six letters to be used for the vowel encryption. After eighteen months of work, the PURPLE device was cracked, and produced important intelligence up to the end of the war. Intelligence results of RED intercepts were not as dramatic, but important intelligence was obtained. For instance, American cryptanalysts were able to provide details of the Tripartite Pact between the Axis powers. Reports of the sea trials of the battleship Nagato were also decoded, leading to important changes to the USS North Carolina (BB-55), then being designed, in order to match the performance of the Japanese ship.

Further reading Chapter 7 of Computer Security and Cryptography (Konheim, Alan G., Wiley-Interscience, 2007, pp. 191–211) has an extensive analysis of the RED cipher.

References

Illustrations

Type A Cipher Machine: Japanese Navy ORANGE cryptographic device captured by US Navy
Japanese Navy ORANGE cryptographic device captured by US Navy
Type A Cipher Machine: Manual and automated means by which Americans deciphered RED messages
Manual and automated means by which Americans deciphered RED messages

Worked examples

Example 1 — a first encounter with Type A Cipher Machine

Start with the simplest possible case. Write down what Type A Cipher Machine claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Type A Cipher Machine before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Type A Cipher Machine ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Type A Cipher Machine

In research
Type A Cipher Machine appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Type A Cipher Machine in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Type A Cipher Machine is common in secondary-school and first-year university syllabi. It links to neighbouring topics Encryption devices, Japan–United States relations, Rotor machines, so understanding it makes those chapters shorter.
In everyday life
Look for Type A Cipher Machine outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Type A Cipher Machine” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Type A Cipher Machine in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Type A Cipher Machine means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Type A Cipher Machine out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Type A Cipher Machine in simple terms?

In the history of cryptography, 91-shiki ōbun injiki (九一式欧文印字機; "System 91 Typewriter for European Characters") or Angōki Taipu-A (暗号機 タイプA; Type A Cipher Machine), codenamed Red by the United States, was a diplomatic cryptographic machine used by the Japanese Foreign Office before and during World…

Why does Type A Cipher Machine matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Type A Cipher Machine?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Type A Cipher Machine.

Tags

  • Encryption devices
  • Japan–United States relations
  • Rotor machines
  • World War II Japanese cryptography

Keep exploring