Information on the decryption department of the Japanese Foreign Ministry is limited since their archives were destroyed twice during the war. First in a bombing on 25 May 1945 and then in August 1945, when they were ordered by their superiors to burn all secret documents.According to the recently declassified TICOM report DF-169 ‘Cryptanalytic section Japanese Foreign Office’ this department was established in 1923 and by the end of WWII had approximately 14 officials and 16 clerks. The radio intercept unit supplying it with messages had a station in Tokyo equipped with 10 receivers and 19 operators. They usually intercepted 40-60 messages per day with 100 being the maximum.
The emphasis was on the solution of the codes of the United States, Britain, China and France but some German, Turkish, Spanish, Italian, Swiss, Thailand and Portuguese codes were also read. Despite their limited resources it seems that the Foreign Ministry’s codebreakers were able to achieve their goals mainly thanks to compromised material that they received from their Army and Navy counterparts.
British codesIn the case of Britain the Government Telegraph Code, R Code, Interdepartmental Cypher and Cypher M were read.
According to one of the Japanese analysts a 4-figure diplomatic codebook and its substitution tables were received from either the Army or the Navy in January 1940, thus a great deal of the traffic could be read. Even though the substitution tables changed every 4-6 months the Japanese were able to get a copy roughly one month after their introduction.
The Chinese government used several codebooks but only a few were enciphered properly. This allowed the Japanese to solve most of the traffic. One of the codebooks they solved was the ’27 DEMPON’.
Some French codes and their substitution tables were received from the Army and thus it was possible to solve this traffic. These were called ‘PC 149’, ‘PC 150’, ‘PC 151’ and ‘CGX’ by the Japanese and they were used by the French embassies in Tokyo, Peking, Hanoi, Nanking and Chungking.
German codesEven though Japan and Germany were allies in WWII it seems that the Japanese authorities did not neglect to solve German diplomatic codes. According to DF-169, p2 a German diplomatic unenciphered code of 100.000 values was solved in part and from 1942 it was possible to read some messages even when they were enciphered with additive sequences, thanks to the reuse of the additive pads.
This must have been the German Foreign Ministry’s basic codebook used unenciphered for low level messages, enciphered with reusable additive pads for important messages and also with one time pads for the most important traffic.
Swiss codesThe code of the Swiss legation in Tokyo was received from the military in summer 1945 and messages were read till the end of the war.
USA codesThe main target of the Foreign Ministry’s codebreakers were the diplomatic systems of the United States. The State Department used the Gray and Brown codes, the enciphered codebooks A1, B1, C1, D1 and the M-138-A strip cipher. By 1940 the Japanese had managed to get copies of Gray, Brown, A1 and several sets of strips of the M-138-A.
During the war they received more strips and keylists from their Finnish and German allies.