Of course, key to our victory over the Japs at Midway was the breaking of the Japanese codes. Just as it was an important factor in the war in Europe, where Nazi codes were broken.
It makes me think that neither the Jap high command nor the Nazi high command were good students of military history because if they were they would have known that the Poles broke the Russian radio codes in 1919-20 and saved Poland (and also perhaps Germany) from the advance of the Red Army, an army that greatly outnumbered the Polish defenders of Warsaw.
If you don’t know history...
Polish Intelligence and its mathematicians did the initial work on the German Enigma codes. Then moved heaven and earth to get the information & expertise to the British.