River, are you getting mixed-up? Are you thinking of the breaking of the Japanese code just before Midway? The planting of a word ( Water cooler??) in the outbound transmissions from Midway.
Of course , the code was broken 3months before the strike by the Japanesse .
The communication from the Japanesse embassy to the Germans was broken .