An earlier generation of tech spies set up the Battle of Midway, luring a superior Japanese fleet into an ambush and a crushing defeat that reversed the course of the Pacific war. This was not a special wartime development either. Military code breakers had been doing it for many years.