This article is about a World War II era cipher used by the Japanese Foreign Office for diplomatic communications. For World War II era ciphers used by the Japanese military, see Japanese naval codes.

In the history of cryptography, 97-shiki ōbun injiki (九七式欧文印字機, "System 97 Typewriter for European Characters") or Angōki B-gata (暗号機B型, "Type B Cipher Machine"), codenamed Purple by the United States, was a diplomatic cryptographic machine used by the Japanese Foreign Office just before and during World War II. The machine was an electromechanical stepping-switch device.

The information gained from decryptions was eventually code-named Magic within the US government.

The codename "Purple" referred to binders used by US cryptanalysts for material produced by various systems; it replaced the Red machine used by the Japanese Foreign Office. The Japanese also used Coral and JADE stepping-switch systems.

"You can't give up hope just because it is hopeless! You gotta hope even more, and cover your ears, and go: "Blah blah blah blah blah blah blah blah!""
0 online