[JoGu]

Cryptology

The Enigma - General Description

a7Hzq .#5r<
kÜ\as TâÆK$
ûj(Ö2 ñw%h:
Úk{4R f~`z8
¤˜Æ+Ô „&¢Dø

Descriptions, Articles, Simulations

External links:


Historical Data

After the war the Allies sold the captured machines to developing countries where they were in use up to around 1975. Then the WWII break into the Enigma became public. These countries were not amused when they learned that the NSA could read their diplomatic communication all the time.

The book by Pröse, see Reference List (for further reading), gives a comprehensive overview over the diverse versions and variants of the Enigma (in German). See also

Davin Kenyon, Frode Weierud: Enigma G, the counter Enigma. Cryptologia 44 (2020), 385–420.

Foreign Variants


Characteristic Properties of the Enigma

Since there are so many different versions we focus on the »Wehrmachts-Enigma«.

The Army's service regulations prohibited encrypting messages of more than 250 letters. The operators had to split longer texts into several parts and encrypt these with different settings (»Spruchschlüssel«).


The Rotors of Enigma I

The table shows the (then) strongly secret wiring of the five rotors I to V available with Enigma I, and of the reflecting rotors (»Umkehrwalzen«) A, B, C:

            A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
    I       E K M F L G D Q V Z N T O W Y H X U S P A I B R C J
    II      A J D K S I R U X B L H W T M C Q G Z N P Y F V O E
    III     B D F H J L C P R T X V Z N Y E I W G A K M U S Q O
    IV      E S O V P Z J A Y Q U I R H X L N F T G K D C M W B
    V       V Z B R G I T Y U P S D N H L X A W M J Q O F E C K

    UKW A   AI  BM  CE  DT  FG  HR  JY  KS  LQ  NZ  OX  PW  UV
    UKW B   AY  BR  CU  DH  EQ  FS  GL  IP  JX  KN  MO  TZ  VW
    UKW C   AF  BV  CP  DJ  EI  GO  HY  KR  LZ  MX  NW  QT  SU
The rows I – V of the table give the corresponding primary alphabets. (The reflecting rotor A was also used in the commercial Enigma and as unique reflecting rotor in the Army Enigma until 1937. Also rotors IV and V were introduced only in 1937.)


The Rotor Stepping

... is shown in the following picture:

[Rotor-Fortschaltung]
[Image from Wikimedia Commons released under GFDL and cc-by-sa]

If one looks at the Enigma during operation from the frontside, the visible position letters in the window move downwards. The picture shows the rotors as seen from the backside, their upper parts move to the left. All three ratchets push (in the picture above) to the left. Rotor 1 is the fast rotor, it steps with each keypress driven by the corresponding ratchet that is always engaged. Rotor 2 moves in this special situation because the notch in rotor 1 allows the ratchet to engage with the indentation of rotor 2. Rotor 3 doesn't move in this step because the ratchet is kept away, the notch of rotor 2 being elsewhere.

This mechanism is very robust. But he causes an irregularity that would be inoperative for a true odometer ...

This occurs when rotor 2 is ready to move rotor 3: In the step before, rotor 2 moves to the critical position. Then it should rest motionless for the next 25 steps because the notch of rotor 1 has to poerform a full turn. However the ratchet for rotor 3 pushes the notch of rotor 2 and gives it a stepping impulse. Hence the pattern of the movements of rotor 2 ist as follows—0 means no movement, 1, advancing 1 position

   |<-- 25 times no motion                      -->|
                                              pushed | by rotor 1
                                                     |
                                                     v
   ...
   0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
   0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
   0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
-->1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 (effect by rotor 3)
   0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
   0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
   ...
Therefore the states of the rotors repeat with a period of 26 × 25 × 26 = 16900 and a preperiod between 0 and 26 × 26 = 676. The number of possible states is 17576 = 263.

The described effect also occurs bewtween rotor 1 and rotor 2—but without any impact, because rotor 1 moves with each step anyway. Whether this movement is pushed by one or by two ratchets makes no difference.

Deavours and Kruh (see the references) state that the Hebern machine shows a similar kind of irregular motion, resulting in a period of 26x26x25.

Do Enigma's rotors turn before or after the currently typed letter is encrypted? See the FAQ.


Author: Klaus Pommerening, 1999-Dec-14; last change: 2021-Jan-17.