The Enigma Machine

You can find a much more in deep description of the Enigma on the wikipedia :)

machine

Enigma was a cipher machine (or, more accurately, family of machines) used by the Germans during World War II for the encryption and decryption of secret messages. It looked like and old typewriter with some extra features, like the lampboard or the rotors.

Enigma machines were used initially in the 1920s commercially, and it wasn't until a little earlier than the beginning of WWII that it was adopted by the German military and government for their communications.

The Enigma machine was first adopted by the German Navy in 1926. Two years later, the German Army introduced its own variation of the machine, the Enigma G, shortly after revised to the Enigma I, also known as the Wehrmacht, or "Services", Enigma, widely used during the war by both military and government organizations.

In 1934, the Navy adopted the Army Enigma I, which after some little changes was brought into service as the Enigma M3. The main differences between both Types I and M3 being the fact that while the Type I used only three rotors, the Army M3 allowed to choose three out of five. The Navy M3 allowed to choose three out of a possible eight rotors.

In 1942, a new variation was introduced by the Navy for U-boat traffic. It was the Enigma M4, and added a fourth rotor to the machine. This extra rotor was fitted in the machine by replacing the M3 reflector with a combination of thin rotors and thin reflectors.

Parts of a Machine

Besides the obvious keyboard, an Enigma machine was a combination of several others electrical and mechanical subsystems interconnected to produce the encryption/decryption of the messages.

Plugboard

machine

Right after a key was pressed on the keyboard, the machine generated an electric signal which, before travelling to the rotors, went to the plugboard. The plugboard allowed to arbitrarily wire pairs of letters by means of cables (normally, only 10 pairs were used at any one time). The effect was to swap those letters before and after the electrical signal traveled to the rotor units, and right after it came back, before showing the letter on the lamp board.

For example, if the letter H and X where paired in this way, whenever the operator pressed H, the signal went to the rotors as if it was the letter X which was pressed. The inverse was also true, pressing X would send an H to the rotors. Right after the signal came from the rotors, if it was an H or an X, it was swapped again before highlighting the corresponding letter.

Entry Wheel

Also known as entry stator (Eintrittswalze in german), usually connects the plugboard to the rotors. If no plugboard is present, then it connects directly the keyboard with the rotors. The connetions made on the military enigma were transparent, that is A>A, B>B, C>C, etc.

However, on the commercial enigma the wiring was made following the keyboard configuration, Q>A, W>B, E>C, and so on, making it an obstacle to the initial polish attempts at deducing the machine configuration (finally solved by cryptanalyst Marian Rejewsky).

Rotors

machine

The core of the machine were its rotors (or wheels), usually three of them, aligned at the top of the case of the machine. Each rotor was a disc with 26 connections, one for each letter in the alphabet.

When the rotors where mounted on the machine side by side, the pins of each one of them rested against the contacts of the neighbouring rotor, forming and electrical connection.

By itself, a rotor performs a very simple type of encryption, a substitution cipher, in which a letter is swapped with some other. The Enigma complexity came from the interconnection of the different rotors and the stepping mechanism of these.

Every time a key was pressed, before the electrical current was sent, the right rotor stepped, rotating one position of the 26 possible. At predefined positions, this stepping would produce a stepping on the rotor situated on the left of this one.

Ring Settings

As metioned earlier, each rotor on the machine was composed, roughly, of two concentric rings.

The internal ring had the inner wired connections. For instance,

A B C D E F GHIJKLMNOPQRSTUVWXYZ
E S O V P Z JAYQUIRHXLNFTGKDCMWB
0 1 2 3 4 5 …

That worked like a simple substitution cipher. Enter a letter ‘A’, the letter ‘E’ would come out.

Now, enter the ring setting (ringstellung). Having two concentric rings on the rotor allowed to rotate one with respect to the other (that was done BEFORE placing the rotor on the machine), therefore, setting an additional fixed offset for that rotor.

For instance, on the above rotor, let’s say we set a ring setting of 5. Now, whenever that rotor gets an incoming letter ‘A’, instead of sending out an ‘E’ (ring setting 0) it would give a ‘Z’, that’s the 6th letter on the bottom row (starting with 0) which gives the rotor connections.

You can think of the ring settings as a fixed additional offset that would be added to the offset of the rotation (the ‘visible’ one).

Reflector

The reflector was situated after the last rotors on the chain, that is, on the left side of the machine. It connected the outputs of the las rotor in pairs, so, whenever a signal came through, it was reflected with another letter, redirecting the current back to the rotors.

Lampboard

machine

Finally, the lamp board, placed above the keyboard.

Every time a key was pressed a lamp was lighted, showing the corresponding encoded letter. The lamp stayed on until the key was released. That way, the operator had time enough to copy the encryped letter on a paper, or send it directly via radio.