He didn't do it by himself, but Alan Turing played a key role in breaking the German codes during WWII. Turing is recognized by many (although not all) as the Father of Artificial Intelligence. Among those who played a key role in breaking the Enigma code and the Lorenz code were a group of Polish mathematicians who had been spirited out of France? by the British so that the Germans would not capture them.