By this point, the greatest secret of the Second World War is common knowledge. The allies had broken key Axis codes, and generals and admirals were guided by signals intelligence. Reading the enemy's mail provided insight into everything from strategic thinking to the readiness levels of specific fighter squadrons. The Emperor's Code is a biography, mostly of the British efforts against Japanese naval codes. It's livened by details about being a codebreaker then, boffins and retired diplomats and WRENS and Indian auxiliaries and other fringe types crammed together in sweltering radio huts, puzzling over grids of numbers in the hopes of finding some intelligence.
Imperial Japan took a characteristically arrogant approach to cryptography, assuming that Japanese was so complex no Westerner could read it. They were almost right, but they were also careless, using crypto systems that were barely random, re-transmitting messages in secure and broken systems simultaneously, and using stereotyped formats that provided easy 'cribs' for deciphering. The Allied effort was riven by technical and political difficulties. The main British codebreaking center in the East moved from Singapore to Sri Lanka to Mombasa in the course of the great retreat in 1942, with obvious implications for efficiency. Bletchley Park devoted most of its resource to crackign the Nazi Enigma cipher and winning the Battle of the Atlantic, and then swept in and demanded a leadership role. And if there's a villain in this book, it's the American Commander Rudi Fabian's FRUMEL unit, canny bureaucratic warriors who in Smith's telling preferred turf-building over breaking codes.
This book is long, and buries some key historical moments in the mass of details. Japanese codes were constantly changing, and could only be broken after sufficient depth of messages had accumulated. The diplomatic 'Purple' cipher had been broken by the Americans, and that combined with other breaks allowed Allied intelligence to conclude that something was up prior to Pearl Harbor, but not the specifics of the initial attacks. Conversely, the Battle of Midway came towards the end of code's period, and in fact several weeks past a scheduled turn-over in codes. This meant that the entire operational order for Midway was broken. At the end of the war, in the Summer of 1945, codebreakers caught a diplomatic message to the Soviet Union attempting to negotiate peace on terms that included the continued safety of the Emperor and the political integrity of the four home islands. These conditions were compatible with the actual American terms, no matter the harsh rhetoric of 'Unconditional Surrender', but for whatever reason (Soviet duplicity, Allied paranoia about signals intelligence), this message was not brought up at the Potsdam conference, and the atom bomb was dropped.
The Emperor's Codes is best as an oral history of codebreakers, and has some structural weaknesses, but it's still a fascinating and worthwhile military history.