Friday, November 28, 2014

How did the Enigma machine work?

How did the Enigma machine work?

On the day The Imitation Game hits cinemas, a look at how Allied codebreakers untangled the Enigma
Enigma machine. Photograph: Linda Nylind for the Guardian

Like all the best cryptography, the Enigma machine is simple to describe, but infuriating to break.

Straddling the border between mechanical and electrical, Enigma looked from the outside like an oversize typewriter. Enter the first letter of your message on the keyboard and a letter lights up showing what it has replaced within the encrypted message. At the other end, the process is the same: type in the "ciphertext" and the letters which light are the decoded missive.

Inside the box, the system is built around three physical rotors. Each takes in a letter and outputs it as a different one. That letter passes through all three rotors, bounces off a "reflector" at the end, and passes back through all three rotors in the other direction.

The board lights up to show the encrypted output, and the first of the three rotors clicks round one position – changing the output even if the second letter input is the same as the first one.

When the first rotor has turned through all 26 positions, the second rotor clicks round, and when that's made it round all the way, the third does the same, leading to more than 17,000 different combinations before the encryption process repeats itself. Adding to the scrambling was a plugboard, sitting between the main rotors and the input and output, which swapped pairs of letters. In the earliest machines, up to six pairs could be swapped in that way; later models pushed it to 10, and added a fourth rotor.

Despite the complexity, all the operators needed was information about the starting position, and order, of the three rotors, plus the positions of the plugs in the board. From there, decoding is as simple as typing the cyphertext back into the machine. Thanks to the reflector, decoding was the same as encoding the text, but in reverse.

But that reflector also led to the flaw in Enigma, and the basis on which all codebreaking efforts were founded: no letter would ever be encoded as itself. With that knowledge, as well as an educated guess at what might be encrypted in some of the messages (common phrases included "Keine besonderen Ereignisse", or "nothing to report" and "An die Gruppe", or "to the group"), it was possible to eliminate thousands of potential rotor positions.

Eventually, the team at Bletchley Park built a machine, the Bombe, which could handle that logical analysis. But the final steps were always performed manually: the job of the Bombe was merely to reduce the number of combinations that the cryptanalysts had to examine.

Even as the Allied code-breaking team were working on Enigma, the Axis was improving its machines, adding more and different rotors, and minimising operator error. Eventually, the Enigma was superseded by the Lorenz. These required yet more codebreaking in Britain, and more automation to do it – leading to the production of Colossus, the world's first digital programmable computer.

Evernote helps you remember everything and get organized effortlessly. Download Evernote.

No comments:

Post a Comment

吴琼 | 乔治·迪迪-于贝尔曼的症候图像学

 【摘 要】 乔治·迪迪-于贝尔曼是在“二战”之后法国理论语境中成长起来的一位激进的艺术史家,他一方面运用新的阅读技术对西方经典艺术史理论的核心概念和写作技艺进行批判性的考察;另一方面又在此基础上兼收并蓄从中世纪至当代的各家理论,尤其融合精神分析学的症候阐释学、瓦尔堡的间隙图像学...