https://en.m.wikipedia.org/wiki/Colossus_computer
However, the timeframe matched, so around 1943, the Allies could decipher messages that allowed them to anticipate German naval movements.
Japanese Empirical codes were cracked dating to the beginning of the war AFAIU, or at the very least 1942.
https://en.m.wikipedia.org/wiki/Colossus_computer