Chrischristensen 2017
Chrischristensen 2017
Chrischristensen 2017
JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted
digital archive. We use information technology and tools to increase productivity and facilitate new forms of scholarship. For more information about
JSTOR, please contact [email protected].
Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at
http://about.jstor.org/terms
Mathematical Association of America is collaborating with JSTOR to digitize, preserve and extend access
to Math Horizons
This content downloaded from 128.122.230.148 on Sun, 12 Feb 2017 11:24:38 UTC
All use subject to http://about.jstor.org/terms
Cracking the Japanese
JN-25 Cipher
I
Chris Christensen and Jared Antrobus
f you were a mathematician recruited to serve
as a codebreaker with Naval Communications’
Research Section OP-20-GM during World War
II, you might be assigned the Japanese inter-
cept shown in figure 1. The message is hid-
den by an enciphered code that was designated by
Allied codebreakers as JN-25.
JN-25 was introduced by the Imperial Japanese
Navy on June 1, 1939, as a general-purpose cipher for
command and operational needs of the Japanese fleet.
It was used until the end of World War II.
The British codebreaker John Tiltman made the first
break into JN-25 in 1939. Unfortunately, only frag-
ments of messages could be deciphered at the time of
the attack on Pearl Harbor. British and U.S. code-
breakers’ eventual success in cracking JN-25 contribut-
ed to many Allied victories in the Pacific, such as the
May 1942 Battle of the Coral Sea and the June 1942 Figure 1. An intercepted JN-25 message.
Battle of Midway.
faculty who might be interested in cryptanalysis. When
The U.S. Navy played only a small part in World
the United States entered the war as a combatant,
War I, but the Navy learned the value of codebreaking.
In 1924 Laurance Safford came to the research desk in mathematicians who successfully completed the cor-
Naval Communications. Safford recognized the need for respondence course were recruited into OP-20-GM,
codebreakers, so he published cryptograms in the com- the research section of Naval Communications OP-
munications bulletin and encouraged solvers to share 20-G, which was headed by former Yale mathematician
their solutions with him. He was searching for men Howard Engstrom.
with cipher brains. Those cryptograms evolved into a
correspondence course in elementary cryptanalysis— Sending and Receiving JN-25 Messages
codebreaking—that was offered to Navy officers. (You Two books were necessary to communicate using JN-25.
can take the course here: http://bit.ly/1QlAqCs.) One was a codebook, which had two parts—one for
After World War II broke out in Europe, Navy lead- sending messages and one for receiving. The other was a
ers realized that more codebreakers would be needed, book of random numbers used to encipher the messages.
and they searched college campuses for mathematics The sender’s part of the codebook was like a diction-
Figure 4. A column
of transmitted code
groups.
Likewise, the first group must have one carry. Now we add 89529 to the differences
That reasoning leads to a force for the last group and obtain the po-
09080: The 9 and the 8 must carry. Because the 8 car- tential clear code groups, 09579, 55941, 96525, 18075,
ries in column four, any digit greater than 7 in that 67662, 42210, 89529, 82854, 84591, and 88509.
column must also carry; therefore, the 9 in row four If and if the codebreakers were lucky, all
carries. Because the 9 in 09080 carries, the 9 in 39556 or many of these numbers would be clear code groups
also carries. All digits that carry are colored green. that had already been recovered and the meanings of
Either the 2 or the 5 in 20050 must carry; therefore, which were known. If some clear code groups had not
we have two cases. It is, of course, more likely that the been recovered and their meanings were not known, per-
5 will carry, but we assume that the 2 carries. (The haps their meanings could be determined by the context
reader is encouraged to try the other case. It explodes of the messages, and it could be added to the growing
into a multitude of subcases, which more accurately codebook.
reflects what happens in jiggling than the easier case Moreover, if 89529 were the correct Gc, then the addi-
presented here.) tive Z is 42752. As the codebreakers recovered additives,
At this point the logic continues in a similar fashion, they could build the additive book.
and we mark entries as carries or noncarries. We give a When the mathematicians of U.S. Naval Communi-
brief sketch of the argument, but the reader is encour- cations OP-20-GM left their colleges and universities,
aged to follow along with pencil and paper. they stepped into the world of cryptologic problems—
Because the 2 in 20050 carries and the 5 does not, problems for which they had only cursory training.
we mark every digit greater than 1 in the first col- But they brought their mathematical problem-solving
umn as a carry, and we mark every digit less than 6 skills, and they contributed to the Allied victory. The
in column four as not carrying. It follows that 39556 success of mathematicians as codebreakers changed
has four carries and 88143 has three carries, and 39556 the nature of cryptology; it became a mathematical
becomes a force—both the 5 in column three and the 6 discipline.
in column five must carry. Try your codebreaking skills on another JN-25
Hence, 76422 has three carries and 63791 has five cipher, which can be found in the Playground (page
carries. Like a cascade, it follows that 63791, 03335, 30). n
17006, and 05072 are forces. The determination of the
remaining carries is straightforward. Figure 8 shows Chris Christensen teaches mathematics and cryptol-
the final array. ogy at Northern Kentucky University. Years ago, after
Now we can determine the possible values of Gc. In running out of Tom Clancy novels, he read Robert
column one, 2 carries but 1 does not; therefore, the Harris’s Enigma and was drawn to cryptology.
left-most digit of Gc is 8. In column two, 3 carries but
0 does not; therefore, the second digit of Gc is 7, 8, or Jared Antrobus is a mathematics doctoral student at
9. In column three, 5 carries but 4 does not; therefore, the University of Kentucky. When not scratching his
the digit is 5. In column four, 8 carries but 7 does not; head over a math problem, Jared likes to read novels,
therefore, the digit is 2. And, in column five, 1 carries play video games, and fiddle with computers.
but 0 does not; therefore, the digit is 9. This leaves
three possibilities for Gc: 87529, 88529, and 89529.
However, Gc must be divisible by 3. Therefore, 89529 is
the only candidate for Gc. http://dx.doi.org/10.4169/mathhorizons.24.3.22