Answer
Magic code-breaking was the codename for the US Navy's World War II cryptographic project, the breaking of the Japanese Purple diplomatic code. Magic allowed the US to read Japanese diplomatic and military messages, including Yamamoto's travel plans, and gave them a decisive advantage in the Pacific War.