Modern day codebreakers have used wartime methods to read messages scrambled by an Enigma machine.