Grill (cryptology) explained

Grill (cryptology) should not be confused with Grille (cryptography).

The grill method (Polish: metoda rusztu),[1] in cryptology, was a method used chiefly early on, before the advent of the cyclometer, by the mathematician-cryptologists of the Polish Cipher Bureau (Biuro Szyfrów) in decrypting German Enigma machine ciphers. The Enigma rotor cipher machine changes plaintext characters into cipher text using a different permutation for each character, and so implements a polyalphabetic substitution cipher.

Background

The German navy started using Enigma machines in 1926; it was called Funkschlüssel C ("Radio cipher C"). By 15 July 1928, the German Army (Reichswehr) had introduced their own version of the Enigma—the Enigma G; a revised Enigma I (with plugboard) appeared in June 1930. The Enigma I used by the German military in the 1930s was a 3-rotor machine. Initially, there were only three rotors labeled I, II, and III, but they could be arranged in any order when placed in the machine. Rejewski identified the rotor permutations by,, and ; the encipherment produced by the rotors altered as each character was encrypted. The rightmost permutation changed with each character. In addition, there was a plugboard that did some additional scrambling.

The number of possible different rotor wirings is:

263=17,536

The number of possible different reflector wirings is:[2]

26!
21313!

=7,905,853,580,625

A perhaps more intuitive way of arriving at this figure is to consider that 1 letter can be wired to any of 25. That leaves 24 letters to connect. The next chosen letter can connect to any of 23. And so on.

25*23*21*19...*3*1=7,905,853,580,625

The number of possible different plugboard wirings (for six cables) is:[3]

26!
266!14!

=100,391,791,500

To encrypt or decrypt, the operator made the following machine key settings:

In the early 1930s, the Germans distributed a secret monthly list of all the daily machine settings. The Germans knew that it would be foolish to encrypt the day's traffic using the same key, so each message had its own "message key". This message key was the sender-chosen initial rotor positions (e.g., YEK). The message key had to be conveyed to the recipient operator, so the Germans decided to encrypt it using the day's pre-specified daily ground setting (Grundstellung). The recipient would use the daily machine settings for all messages. He would set the Enigma's initial rotor position to the ground setting and decrypt the message key. The recipient would then set the initial rotor position to the message key and decrypt the body of the message.

The Enigma was used with radio communications, so letters were occasionally corrupted during transmission or reception. If the recipient did not have the correct message key, then the recipient could not decipher the message. The Germans decided to send the three-letter message key twice to guard against transmission errors. Instead of encrypting the message key "YEK" once and sending the encrypted key twice, the Germans doubled the message key to "YEKYEK" ("doubled key"), encrypted the doubled key with the ground setting, and sent the encrypted doubled key. The recipient could then recognize a garbled message key and still decrypt the message. For example, if the recipient received and decrypted the doubled key as "YEKYEN", then the recipient could try both message keys "YEK" and "YEN"; one would produce the desired message and the other would produce gibberish.

The encrypted doubled key was a huge cryptographic mistake because it allowed cryptanalysts to know two encipherments of the same letter, three places apart, for each of the three letters. The Polish codebreakers exploited this mistake in many ways. Marian Rejewski used the doubled key and some known daily keys obtained by a spy, to determine the wiring of the three rotors and the reflector. In addition, code clerks often did not choose secure random keys, but instead chose weak keys such as "AAA", "ABC", and "SSS". The Poles later used the doubled weak keys to find the unknown daily keys. The grill method was an early exploitation of the doubled key to recover part of the daily settings. The cyclometer and the bomba kryptologiczna were later exploitations of the doubled key.

Example message

Frode Weierud provides the procedure, secret settings, and results that were used in a 1930 German technical manual.[4] [5]

Daily settings (shared secret):
  Wheel Order  : II  I  III
  Ringstellung : 24  13  22 (XMV)
  Reflector    : A
  Plugboard    : A-M, F-I, N-V, P-S, T-U, W-Z
  Grundstellung: 06  15  12 (FOL)

Operator chosen message key : ABL
Enciphered starting with FOL: PKPJXI

Message to send and resulting 5-letter groups of clear text:
  Feindliche Infanteriekolonne beobachtet.
  Anfang Südausgang Bärwalde.
  Ende 3 km ostwärts Neustadt.

  FEIND LIQEI NFANT ERIEK 
  OLONN EBEOB AQTET XANFA 
  NGSUE DAUSG ANGBA ERWAL 
  DEXEN DEDRE IKMOS TWAER 
  TSNEU STADT

Resulting message:
  1035 – 90 – 341 – 
  PKPJX IGCDS EAHUG WTQGR
  KVLFG XUCAL XVYMI GMMNM
  FDXTG NVHVR MMEVO UYFZS
  LRHDR RXFJW CFHUH MUNZE
  FRDIS IKBGP MYVXU Z

The first line of the message is not encrypted. The "1035" is the time, "90" is number of characters encrypted under the message key, and "341" is a system indicator that tells the recipient how the message was encrypted (i.e., using Enigma with a certain daily key). The first six letters in the body ("PKPJXI") are the doubled key ("ABLABL") encrypted using the daily key settings and starting the encryption at the ground setting/Grundstellung "FOL". The recipient would decipher the first six letters to recover the message key ("ABL"); he would then set the machine's rotors to "ABL" and decipher the remaining 90 characters. Notice that the Enigma does not have numerals, punctuation, or umlauts. Numbers were spelled out. Most spaces were ignored; an "X" was used for a period. Umlauts used their alternative spelling with a trailing "e". Some abbreviations were used: a "Q" was used for "CH".

When Rejewski started his attack in 1932, he found it obvious that the first six letters were the enciphered doubled key.[6]

Key encryption

The daily key settings and ground setting will permute the message key characters in different ways. That can be shown by encrypting six of the same letter for all 26 letters:

AAAAAA -> PUUJJN
BBBBBB -> TKYWXV
CCCCCC -> KZMVVY
DDDDDD -> XMSRQK
EEEEEE -> RYZOLZ
FFFFFF -> ZXNSTU
GGGGGG -> QRQUNT
HHHHHH -> SSWYYS
IIIIII -> WNOZPL
JJJJJJ -> MQVAAX
KKKKKK -> CBTTSD
LLLLLL -> OWPQEI
MMMMMM -> JDCXUO
NNNNNN -> YIFPGA
OOOOOO -> LPIEZM
PPPPPP -> AOLNIW
QQQQQQ -> GJGLDR
RRRRRR -> EGXDWQ
SSSSSS -> HHDFKH
TTTTTT -> BVKKFG
UUUUUU -> VAAGMF
VVVVVV -> UTJCCB
WWWWWW -> ILHBRP
XXXXXX -> DFRMBJ
YYYYYY -> NEBHHC
ZZZZZZ -> FCEIOE
From this information, the permutations for each of the six message keys can be found. Label each permutation A B C D E F. These permutations are secret: the enemy should not know them.

\begin{align} A=&\binomtt{abcdefghijklmnopqrstuvwxyz} tt{ptkxrzqswmcojylagehbvuidnf}&=tt{(ap)(bt)(ck)(dx)(er)(fz)(gq)(hs)(iw)(jm)(lo)(ny)(uv)}\\ B=&\binomtt{abcdefghijklmnopqrstuvwxyz} tt{ukzmyxrsnqbwdipojghvatlfec}&=tt{(au)(bk)(cz)(dm)(ey)(fx)(gr)(hs)(in)(jq)(lw)(op)(tv)}\\ C=&\binomtt{abcdefghijklmnopqrstuvwxyz} tt{uymsznqwovtpcfilgxdkajhrbe}&=tt{(au)(by)(cm)(ds)(ez)(fn)(gq)(hw)(io)(jv)(kt)(lp)(rx)}\\ D=&\binomtt{abcdefghijklmnopqrstuvwxyz} tt{jwvrosuyzatqxpenldfkgcbmhi}&=tt{(aj)(bw)(cv)(dr)(eo)(fs)(gu)(hy)(iz)(kt)(lq)(mx)(np)}\\ E=&\binomtt{abcdefghijklmnopqrstuvwxyz} tt{jxvqltnypaseugzidwkfmcrbho}&=tt{(aj)(bx)(cv)(dq)(el)(ft)(gn)(hy)(ip)(ks)(mu)(oz)(rw)}\\ F=&\binomtt{abcdefghijklmnopqrstuvwxyz} tt{nvykzutslxdioamwrqhgfbpjce}&=tt{(an)(bv)(cy)(dk)(ez)(fu)(gt)(hs)(il)(jx)(mo)(pw)(qr)}\\ \end{align}

Notice the permutations are products of 13 disjoint transpositions. For the A permutation, it not only changes "A" into "P" but it also changes "P" into "A". That allows the machine to both encrypt and decrypt messages.

Augustin-Louis Cauchy introduced two-line notation in 1815 and cycle notation in 1844.[7]

Rejewski's characteristic

Rejewski made an incredible discovery. Without knowing the plugboard settings, the rotor positions, the ring settings, or the ground setting, he could solve for all the daily message keys. All he needed were enough messages and some code clerks using non-random message keys.

The message key is three characters long, so the doubled key is six characters long. Rejewski labeled the permutations for the successive message-key characters A B C D E F. He did not know what those permutations were, but he did know that A and D permutations encrypted the same message key letter, that B and E encrypted the same letter, and that C and F encrypted the same letter. If are the (unknown) plaintext letters of the message key and are the corresponding (known) ciphertext letters, then

\begin{align} p1&=c1A-1&=p4&=c4D-1\\ p2&=c2B-1&=p5&=c5E-1\\ p3&=c3C-1&=p6&=c6F-1\\ \end{align}

The equations can be post multiplied by D, E, and F respectively to simplify the right hand sides:

\begin{align} p1D&=c1A-1D&=p4D&=c4\\ p2E&=c2B-1E&=p5E&=c5\\ p3F&=c3C-1F&=p6F&=c6\\ \end{align}

The plaintext values are unknown, so those terms are just dropped to leave:

\begin{align} c1A-1D&=c4\\ c2B-1E&=c5\\ c3C-1F&=c6\\ \end{align}

The above equations describe a path through the permutations. If is passed through the inverse of, then it produces . If that character passes through, then the result is .

Rejewski also knew that the Enigma permutations were self inverses: Enigma encryption and decryption were identical. That means that where is the identity permutation. Consequently, . Thus:

\begin{align} c1AD&=c4\\ c2BE&=c5\\ c3CF&=c6\\ \end{align}

The above equations show the relationship between the doubled key characters. Although Rejewski did not know the individual permutations A B C D E F, a single message told him how specific characters were permuted by the composed permutations AD, BE, and CF.

From many messages, Rejewski could determine the composed permutations completely. In practice, about 60 messages were needed to determine the permutations.

Rejewski recorded the three permutations with a cyclic notation he called the characteristic. gives an example:

\begin{align} AD&=tt{(dvpfkxgzyo)(eijmunglht)(bc)(rw)(a)(s)}\\ BE&=tt{(blfqveoum)(hjpswizrn)(axt)(cgy)(d)(k)}\\ CF&=tt{(abviktjgfcqny)(duzrehlxwpsmo)}\\ \end{align}

In this notation, the first cycle of permutation would map d to v, v to p, p to f, ..., y to o, and o would wrap around to d.

Marks and Weierud give an example from Alan Turing that shows these cycles can be completed when some information is incomplete.[8]

Furthermore, Enigma permutations were simple transpositions, which meant that each permutation A B C D E F only transposed pairs of characters. Those character pairs had to come from different cycles of the same length. Moreover, any one pairing between two cycles determined all the other pairs in those cycles. Consequently, permutations A and D both had to transpose a and s because (a) and (s) are the only cycles of length one and there is only one way to pair them. There are two ways to match (bc) and (rw) because b must pair with either r or w. Similarly, there are ten ways to match the remaining ten-character cycles. In other words, Rejewski now knew that there were only twenty possibilities for the permutations A and D. Similarly, there were 27 candidates for B and E, and 13 candidates for C and F.

Weak keys

At this point, the Poles would exploit weaknesses in the code clerks' selection of message keys to determine which candidates were the correct ones. If the Poles could correctly guess the key for a particular message, then that guess would anchor two cycles in each of the three characteristics.

The Poles intercepted many messages; they would need about 60 messages in the same daily key to determine the characteristic, but they may have many more. Early on, Rejewski had identified the six characters that made up the message key. If the code clerks were choosing random message keys, then one would not expect to see much correlation in the encrypted six characters. However, some code clerks were lazy. What if, out of a hundred messages, there were five messages from five different stations (meaning five different code clerks) that all used the same message key "PUUJJN"?[9] That they all came up with the same key suggests they used a very simple or very common key. The Poles kept track of different stations and how those stations would choose message keys. Early on, clerks often used simple keys such as "AAA" or "BBB".[10]

The end result was that without knowing the Enigma's plugboard settings, the rotor positions, or the ring settings, Rejewski determined each of the permutations A B C D E F, and hence all of the day's message keys.[11]

Initially, Rejewski used the knowledge of permutations A B C D E F (and a manual obtained by a French spy) to determine the rotor wirings. After learning the rotor wirings, the Poles used the permutations to determine the rotor order, plugboard connections, and ring settings through further steps of the grill method.

Continuing the 1930 example

Using the daily key in the 1930 technical manual above, then (with enough messages) Rejewski could find the following characteristics:

\begin{align} AD&=tt{(pjxroquctwzsy)(kvgledmanhfib)}\\ BE&=tt{(kxtcoigweh)(zvfbsylrnp)(ujd)(mqa)}\\ CF&=tt{(yvxqtdhpim)(skgrjbcolw)(un)(fa)(e)(z)}\\ \end{align}

Although there are theoretically 7 trillion possibilities for each of the A B C D E F permutations, the characteristics above have narrowed the A and D permutations to just 13 possibilities, B and E to just 30 possibilities, and C and F to just 20 possibilities. The characteristic for CF has two singleton cycles, and .[12] Those singleton cycles must pair in the individual permutations, so the characteristic for CF implies that the "E" and "Z" exchange in both the C and F permutations.

\begin{align} C&=tt{(ez)...}\\ F&=tt{(ez)...}\\ \end{align}

The pairing of "E" and "Z" can be checked in the original (secret) permutations given above.

Rejewski would now know that indicators with the pattern "..E..E" were from a message key of "..Z"; similarly an indicator of "..Z..Z" were from a message key of "..E". In the day's traffic, he might find indicators such as "PKZJXZ" or "RYZOLZ"; might one of these indicators be the common (lazy) message key "EEE"? The characteristic limits the number of possible permutations to a small number, and that allows some simple checks. "PKZJXZ" cannot be "EEE" because it requires "K" and "E" to interchange in B, but both "K" and "E" are part of the same cycle in BE: . Interchanging letters must come from distinct cycles of the same length. The repeating key could also be confirmed because it could uncover other repeating keys.

The indicator "RYZOLZ" is a good candidate for the message key "EEE", and it would immediately determine both permutations A and D. For example, in AD, the assumed message key "EEE" requires that "E" and "R" interchange in A and that "E" and "O" interchange in D.

\begin{align} A&=tt{(er)...}\\ D&=tt{(eo)...}\\ \end{align}

If "E" interchanges with "R" in A (notice one character came from the first cycle in AD and the other character came from the second cycle), then the letter following "E" (i.e. "D") will interchange with the letter preceding "R" (i.e. "X") .

\begin{align} A&=tt{(er)(dx)...}\\ D&=tt{(eo)...}\\ \end{align}

That can be continued to get all the characters for both permutations.

\begin{align} A&=tt{(er)(dx)(jm)(ap)(ny)(hs)(fz)(iw)(bt)(ck)(uv)(gq)(lo)}\\ D&=tt{(eo)(lq)(gu)(cv)(kt)(bw)(iz)(fs)(hy)(np)(ag)(mx)(dr)}\\ \end{align}

This characteristic notation is equivalent to the expressions given for the 1930 permutations A and D given above by sorting the cycles so that the earliest letter is first.

\begin{align} A&=tt{(ap)(bt)(ck)(dx)(er)(fz)(gq)(hs)(iw)(jm)(lo)(ny)(uv)}\\ D&=tt{(aj)(bw)(cv)(dr)(eo)(fs)(gu)(hy)(iz)(kt)(lq)(mx)(np)}\\ \end{align}

The guessed message key of "EEE" producing indicator "RYZOLZ" would also determine the pairing of the 10-long cycles in permutation BE.

\begin{align} B&=tt{(ey)(hs)(kb)(xf)(tv)(cz)(op)(in)(gr)(wl)...}\\ E&=tt{(le)(rw)(ng)(pi)(zo)(vc)(ft)(bx)(sk)(yh)...}\\ \end{align}

That determines most of B and E, and there would only be three possible variations left that pair and . There are still 20 possible variations for C and F. At this point, the Poles could decrypt all of the first and fourth letters of the daily keys; they could also decrypt 20 out 26 of the second and fifth letters. The Poles' belief in these permutations could be checked by looking at other keys and seeing if they were typical keys used by code clerks.

With that information, they could go looking for and find other likely weak message keys that would determine the rest of the A B C D E F permutations. For example, if the Poles had an indicator "TKYWXV", they could decrypt it as "BB.BB."; checking the cycles for CF would reveal that the indicator is consistent with message key "BBB".

Rejewski's model

Rejewski modeled the machine as permutation made from permutations of plugboard, the wiring from the keyboard/lamps to the rotors, the three rotors, and the reflector . The permutation for each position of the doubled key was different, but they were related by a permutation that represented a single step of a rotor (is known). Rejewski assumed that the left and middle rotors did not move while encrypting the doubled key. The six letters of the doubled key consequently see the permutations A B C D E F:

\begin{align} A&=SH(P1NP-1)LMRM-1L-1(P1N-1P-1)H-1S-1\\ B&=SH(P2NP-2)LMRM-1L-1(P2N-1P-2)H-1S-1\\ C&=SH(P3NP-3)LMRM-1L-1(P3N-1P-3)H-1S-1\\ D&=SH(P4NP-4)LMRM-1L-1(P4N-1P-4)H-1S-1\\ E&=SH(P5NP-5)LMRM-1L-1(P5N-1P-5)H-1S-1\\ F&=SH(P6NP-6)LMRM-1L-1(P6N-1P-6)H-1S-1\\ \end{align}

Rejewski simplified these equations by creating as a composite reflector made from the real reflector and two leftmost rotors:

Q=LMRM-1L-1

Substitution produces:

\begin{align} A&=SH(P1NP-1)Q(P1N-1P-1)H-1S-1\\ B&=SH(P2NP-2)Q(P2N-1P-2)H-1S-1\\ C&=SH(P3NP-3)Q(P3N-1P-3)H-1S-1\\ D&=SH(P4NP-4)Q(P4N-1P-4)H-1S-1\\ E&=SH(P5NP-5)Q(P5N-1P-5)H-1S-1\\ F&=SH(P6NP-6)Q(P6N-1P-6)H-1S-1\\ \end{align}

The result is six equations in four unknowns (S H N Q). Rejewski had a commercial Enigma machine, and he initially thought that would be the same. In other words, Rejewski guessed that

H=\binom{qwertzuioasdfghjkpyxcvbnml}{abcdefghijklmnopqrstuvwxyz}

Later, Rejewski realized that guess was wrong. Rejewski then guessed (correctly) that was just the identity permutation:

H=\binom{abcdefghijklmnopqrstuvwxyz}{abcdefghijklmnopqrstuvwxyz}

That still left three unknowns. Rejewski comments:

So I had a set of six equations in three unknowns, S, N, and Q. While I puzzled over how to solve that set of equations, on December 9, 1932, completely unexpectedly and at the most opportune moment, a photocopy of two tables of daily keys for September and October 1932 was delivered to me.

Having the daily keys meant that was now known. The known permutations were moved to the left side in the equations by premultiplying and post multiplying.

\begin{align} H-1S-1ASH&=(P1NP-1)Q(P1N-1P-1)\\ H-1S-1BSH&=(P2NP-2)Q(P2N-1P-2)\\ H-1S-1CSH&=(P3NP-3)Q(P3N-1P-3)\\ H-1S-1DSH&=(P4NP-4)Q(P4N-1P-4)\\ H-1S-1ESH&=(P5NP-5)Q(P5N-1P-5)\\ H-1S-1FSH&=(P6NP-6)Q(P6N-1P-6)\\ \end{align}

The leftmost and rightmost permutations on the right-hand side (which were also known) were moved to the left; the results were given the variable names U V W X Y Z:

\begin{align} U&=P-1H-1S-1ASHP1&=(NP-1)Q(P1N-1)\\ V&=P-2H-1S-1BSHP2&=(NP-2)Q(P2N-1)\\ W&=P-3H-1S-1CSHP3&=(NP-3)Q(P3N-1)\\ X&=P-4H-1S-1DSHP4&=(NP-4)Q(P4N-1)\\ Y&=P-5H-1S-1ESHP5&=(NP-5)Q(P5N-1)\\ Z&=P-6H-1S-1FSHP6&=(NP-6)Q(P6N-1)\\ \end{align}

Rejewski then multiplied each equation with the next:

\begin{align} UV&=(NP-1)Q(P1N-1)(NP-2)Q(P2N-1)&=NP-1(QP-1QP)P1N-1\\ VW&=(NP-2)Q(P2N-1)(NP-3)Q(P3N-1)&=NP-2(QP-1QP)P2N-1\\ WX&=(NP-3)Q(P3N-1)(NP-4)Q(P4N-1)&=NP-3(QP-1QP)P3N-1\\ XY&=(NP-4)Q(P4N-1)(NP-5)Q(P5N-1)&=NP-4(QP-1QP)P4N-1\\ YZ&=(NP-5)Q(P5N-1)(NP-6)Q(P6N-1)&=NP-5(QP-1QP)P5N-1\\ \end{align}

Next, Rejewski eliminated the common subexpression by substituting its value obtained from the previous product.

\begin{align} VW&=NP-1N-1(UV)NP1N-1\\ WX&=NP-1N-1(VW)NP1N-1\\ XY&=NP-1N-1(WX)NP1N-1\\ YZ&=NP-1N-1(XY)NP1N-1\\ \end{align}

The result is a set of four equations in just one unknown: .

Back to 1930 example

For the 1930 example above,

     ABCDEFGHIJKLMNOPQRSTUVWXYZ
  A  ptkxrzqswmcojylagehbvuidnf
  B  ukzmyxrsnqbwdipojghvatlfec
  C  uymsznqwovtpcfilgxdkajhrbe
  D  jwvrosuyzatqxpenldfkgcbmhi
  E  jxvqltnypaseugzidwkfmcrbho
  F  nvykzutslxdioamwrqhgfbpjce
are transformed to the permutations:
     ABCDEFGHIJKLMNOPQRSTUVWXYZ
  U  gkvlysarqxbdptumihfnoczjew
  V  gnfmycaxtrzsdbvwujliqophek
  W  uekfbdszrtcyqxvwmigjaopnlh
  X  jelfbdrvsaxctqyungimphzkow
  Y  ltgmwycsvqxadzrujohbpiekfn
  Z  mskpiyuteqcravzdjlbhgnxwfo
and then multiplied to produce the five successive products:
       ABCDEFGHIJKLMNOPQRSTUVWXYZ
  UV = azoselgjuhnmwiqdtxcbvfkryp = (a)(e)(g)(y)(hj)(rx)(bzpdscoqt)(flmwkniuv)
  VW = sxdqlkunjihgfeopatyrmvwzbc = (o)(p)(v)(w)(ij)(rt)(asybxzcdq)(elgumfkhn)
  WX = pbxdefiwgmlonkhztsrajyuqcv = (b)(d)(e)(f)(gi)(rs)(apzvycxqt)(hwujmnklo)
  XY = qwaytmoihlkgbjfpzcvdusnxre = (k)(p)(u)(x)(hi)(sv)(aqzetdyrc)(bwnjlgofm)
  YZ = rhuaxfkbnjwmpolgqztsdeicyv = (f)(j)(q)(y)(bh)(st)(arzvexcud)(gkwinolmp)
Now the goal is to find the single structure preserving map that transforms UV to VW, VW to WX, WX to XY, and XY to YZ. Found by subscription of cycle notation. When maps to, the map must mate cycles of the same length. That means that (a) in must map to one of (o)(p)(v)(w) in . In other words, a must map to one of opvw. These can be tried in turn.
  UV = (a)(e)(g)(y)(hj)(rx)(bzpdscoqt)(flmwkniuv)
  VW = (o)                                        (p)(v)(w)(ij)(rt)(asybxzcdq)(elgumfkhn)
 
  VW = (o)(p)(v)(w)(ij)(rt)(asybxzcdq)(elgumfkhn)
  WX =                                            (b)(d)(e)(f)(gi)(rs)(apzvycxqt)(hwujmnklo)
 
  WX = (b)(d)(e)(f)(gi)(rs)(apzvycxqt)(hwujmnklo)
  XY =                                            (k)(p)(u)(x)(hi)(sv)(aqzetdyrc)(bwnjlgofm)
 
  XY = (k)(p)(u)(x)(hi)(sv)(aqzetdyrc)(bwnjlgofm)
  YZ =                                            (f)(j)(q)(y)(bh)(st)(arzvexcud)(gkwinolmp)

But a must map the same to o in each pairing, so other character mappings are also determined:

  UV = (a)(e)(g)(y)(hj)(rx)(bzpdscoqt)(flmwkniuv)
  VW = (o)                                        (p)(v)(w)(ij)(rt)(asybxzcdq)(elgumfkhn)
 
  VW = (o)(p)(v)(w)(ij)(rt)(asybxzcdq)(elgumfkhn)
  WX =                     (ohwujmnkl)            (b)(d)(e)(f)(gi)(rs)(apzvycxqt)
 
  WX = (b)(d)(e)(f)(gi)(rs)(apzvycxqt)(hwujmnklo)
  XY =                     (ofmbwnjlg)            (k)(p)(u)(x)(hi)(sv)(aqzetdyrc)
 
  XY = (k)(p)(u)(x)(hi)(sv)(aqzetdyrc)(bwnjlgofm)
  YZ =                     (olmpgkwin)            (f)(j)(q)(y)(bh)(st)(arzvexcud)

Consequently, the character maps for sybxzcdq, pzvycxqt, and qzetdyrc are discovered and consistent. Those mappings can be exploited:

  UV = (a)(e)(g)(y)(hj)(rx)(bzpdscoqt)(flmwkniuv)
  VW = (o)(p)   (w)    (ij)(umfkhnelg)(xzcdqasyb) (v)(rt)
 
  VW = (o)(p)(v)(w)(ij)(rt)(asybxzcdq)(elgumfkhn)
  WX =    (f)(b)       (ig)(ohwujmnkl)(pzvycxqta) (d)(e)(rs)
 
  WX = (b)(d)(e)(f)(gi)(rs)(apzvycxqt)(hwujmnklo)
  XY = (u)(k)(p)       (ih)(ofmbwnjlg)            (x)(sv)(aqzetdyrc)
 
  XY = (k)(p)(u)(x)(hi)(sv)(aqzetdyrc)(bwnjlgofm)
  YZ =    (f)   (j)    (hb)(olmpgkwin)(udarzvexc) (q)(y)(st)

Which determines the rest of the map and consistently subscribes:

  UV = (a)(e)(g)(y)(hj)(rx)(bzpdscoqt)(flmwkniuv)
  VW = (o)(p)(v)(w)(tr)(ij)(umfkhnelg)(xzcdqasyb)
 
  VW = (o)(p)(v)(w)(ij)(rt)(asybxzcdq)(elgumfkhn)
  WX = (e)(f)(b)(d)(sr)(ig)(ohwujmnkl)(pzvycxqta)
 
  WX = (b)(d)(e)(f)(gi)(rs)(apzvycxqt)(hwujmnklo)
  XY = (u)(k)(p)(x)(vs)(ih)(ofmbwnjlg)(tdyrcaqze)
 
  XY = (k)(p)(u)(x)(hi)(sv)(aqzetdyrc)(bwnjlgofm)
  YZ = (q)(f)(y)(j)(ts)(hb)(olmpgkwin)(udarzvexc)

The resulting map with successive subscriptions:

 resulting map: ABCDEFGHIJKLMNOPQRSTUVWXYZ
                ounkpxvtsrqzcaeflihgybdjwm = (aoepfxjrishtgvbuywdkqlzmcn)
  UV = (a)(e)(g)(y)(hj)(rx)(bzpdscoqt)(flmwkniuv)
  VW = (o)(p)(v)(w)(tr)(ij)(umfkhnelg)(xzcdqasyb)
  WX = (e)(f)(b)(d)(gi)(sr)(ycxqtapzv)(jmnklohwu)
  XY = (p)(x)(u)(k)(vs)(hi)(wnjlgofmb)(rcaqzetdy)
  YZ = (f)(j)(y)(q)(bh)(ts)(darzvexcu)(inolmpgkw)
The map gives us, but that is also congugate (structure preserving). Consequently, the 26 possible values for are found by subscribing in 26 possible ways.

The model above ignored the right rotor's ring setting (22) and ground setting (12), both of which were known because Rejewski had the daily keys. The ring setting has the effect of counterrotating the drum by 21; the ground setting advances it by 11. Consequently, the rotor rotation is -10, which is also 16.

         ABCDEFGHIJKLMNOPQRSTUVWXYZ
Straight ounkpxvtsrqzcaeflihgybdjwm
Shifted  gpsquvbyxwortzmcekdafnljih = (agbpcsdqeufvnzhyixjwlrkomt)
subscribe P in different ways:        (abcdefghijklmnopqrstuvwxyz)
                                      (bcdefghijklmnopqrstuvwxyza) * actual rotor wiring
                                      (cdefghijklmnopqrstuvwxyzab)
                                      ...
                                      (zabcdefghijklmnopqrstuvwxy)

rotor *   ABCDEFGHIJKLMNOPQRSTUVWXYZ
          bdfhjlcprtxvznyeiwgakmusqo

Grill

The physical grill was used to determine both the rightmost rotor, its initial position, and the plugboard settings.

Bottom sheet

Rejewsky observed that is close to the identity permutation (in the early 1930s, only 12 of 26 letters were affected by the plugboard). He moved everything but to the left side of the equations by premultiplying or postmultiplying. The resulting system of equations is:

\begin{align} (P1N-1P-1)S-1AS(P1NP-1)&=Q\\ (P2N-1P-2)S-1BS(P2NP-2)&=Q\\ (P3N-1P-3)S-1CS(P3NP-3)&=Q\\ (P4N-1P-4)S-1DS(P4NP-4)&=Q\\ (P5N-1P-5)S-1ES(P5NP-5)&=Q\\ (P6N-1P-6)S-1FS(P6NP-6)&=Q\\ \end{align}

At his point, is unknown, but it is the same for each equation. Rejewski does not know, but he knows it is one of the rotors (I, II, and III), and he knows the wiring for each of those rotors. There were only three rotors and 26 possible initial rotations. Consequently, there are only 84 possible values for . Rejewski can look at each possible value to see if the permutation is consistent. If there were no steckers (were the identity), then each equation would produce the same .

Consequently, he made one bottom sheet for each possible rotor (three sheets). Each bottom sheet consisted of 31 lines (26 + 5 to make six lines contiguous). Each line contained the stepped permutation of a known rotor. For example, a suitable bottom sheet for rotor III is,

\begin{align} P0&NP-0&tt{bdfhjlcprtxvznyeiwgakmusqo}\\ P1&NP-1&tt{cegikboqswuymxdhvfzjltrpna}\\ P2&NP-2&tt{dfhjanprvtxlwcgueyiksqomzb}\\ &...&...\\ P25&NP-25&tt{pcegikmdqsuywaozfjxhblnvtr}\\ P0&NP-0&tt{bdfhjlcprtxvznyeiwgakmusqo}\\ P1&NP-1&tt{cegikboqswuymxdhvfzjltrpna}\\ P2&NP-2&tt{dfhjanprvtxlwcgueyiksqomzb}\\ P3&NP-3&tt{egizmoquswkvbftdxhjrpnlyac}\\ P4&NP-4&tt{fhylnptrvjuaescwgiqomkxzbd}\\ \end{align}

In the early 1930s, the rotor order was the same for a month or more, so the Poles usually knew which rotor was in the rightmost position and only needed to use one bottom sheet. After 1 November 1936, the rotor order changed every day. The Poles could use the clock method to determine the rightmost rotor, so the grill would only need to examine that rotor's bottom sheet.

Top sheet

For the top sheet, Rejewski wrote the six permutations through .

A: abcdefghijklmnopqrstuvwxyz
   srwivhnfdolkygjtxbapzecqmu
(..slit......................)
...

F: abcdefghijklmnopqrstuvwxyz
   wxofkduihzevqscymtnrglabpj
(..slit......................)
There were six slits so the permutations on the bottom sheet would show through at the proper place.

The top sheet would then be slid through all possible positions of rotor, and the cryptanalyst would look for consistency with some unknown but constant permutation . If there is not a consistent, then the next position is tried.

Here's what the grill would show for the above permutations at its consistent alignment:

A: abcdefghijklmnopqrstuvwxyz
   ptkxrzqswmcojylagehbvuidnf
17 fpjtvdbzxkmoqsulyacgeiwhnr (visible through slit)

B: abcdefghijklmnopqrstuvwxyz
   ukzmyxrsnqbwdipojghvatlfec
18 oisucaywjlnprtkxzbfdhvgmqe (visible through slit)

C: abcdefghijklmnopqrstuvwxyz
   uymsznqwovtpcfilgxdkajhrbe
19 hrtbzxvikmoqsjwyaecguflpdn (visible through slit)

D: abcdefghijklmnopqrstuvwxyz
   jwvrosuyzatqxpenldfkgcbmhi
20 qsaywuhjlnprivxzdbftekocmg (visible through slit)

E: abcdefghijklmnopqrstuvwxyz
   jxvqltnypaseugzidwkfmcrbho
21 rzxvtgikmoqhuwycaesdjnblfp (visible through slit)

F: abcdefghijklmnopqrstuvwxyz
   nvykzutslxdioamwrqhgfbpjce
22 ywusfhjlnpgtvxbzdrcimakeoq (visible through slit)

In permutation, the cryptanalyst knows that (c k) interchange. He can see how rotor III would scramble those letters by looking at the first line (the alphabet in order) and the line visible through the slit. The rotor maps c into j and it maps k into m. If we ignore steckers for the moment, that means permutation would interchange (j m). For to be consistent, it must be the same for all six permutations.

Look at the grill near permutation to check if its also interchanges (j m). Through the slit, find the letter j and look in the same column two lines above it to find h. That tells us the rotor, when it has advanced three positions, now maps h into j. Similarly, the advanced rotor will map y into m. Looking at permutation, it interchanges (h y), so the two tests are consistent.

Similarly, in permutation, the (d x) interchange and imply that (t h) interchange in . Looking at permutation, (e l) interchange and also imply that (t h) interchange in .

All such tests would be consistent if there were no steckers, but the steckers confuse the issue by hiding such matches. If any of the letters involved in the test is steckered, then it will not look like a match.

The effect of the rotor permutation can be removed to leave the implied by the permutations. The result (along with the actual value of) is:

   -: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Q(A): vyzrilptemqfjsugkdnhoaxwbc
Q(B): myqvswpontxzaihgcuejrdfkbl
Q(C): vcbrpmoulxwifzgeydtshakjqn
Q(D): kyirhulecmagjqstndopfzxwbv
Q(E): vemgbkdtwufzcxrysoqhjainpl
Q(F): wvlrpqsmjizchtuefdgnobayxk

Q   : vyqrpkstnmfzjiuecdghoaxwbl (this actual Q is unknown to the cryptanalyst)
Most of the letters in an implied permutation are incorrect. An exchange in an implied permutation is correct if two letters are not steckered. About one half the letters are steckered, so the expectation is only one fourth of the letters in an implied permutation are correct. Several columns show correlations; column A has three v characters, and (a v) interchange in the actual ; column D has four r characters, and (d r) interchange in .[13]

describes the possibility of writing down the six implied s for all 26 possible rotor positions. Rejewski states, "If permutation actually were the identity, then ... for a particular [initial position] we would obtain the same value for all expressions and in this way we would find the setting of drum . Permutation does exist, however, so for no [initial position] will the expression be equal to each other, but among them will be a certain similarity for a particular [initial position], since permutation does not change all the letters."

Rejewski states that writing down all the possible "would be too laborious", so he developed the grill (grid) method. "Next, the grid is moved along the paper on which the drum connections are written until it hits upon a position where some similarities show up among the several expression . ... In this way the setting of drum and the changes resulting from permutation are found simultaneously. This process requires considerable concentration since the similarities I mentioned do not always manifest themselves distinctly and can be very easily overlooked." The reference does not describe what techniques were used. Rejewski did state that the grill method required unsteckered pairs of letters.

Permutation has the exchanges (ap)(bt)(ck).... If we assume the exchange (ap) is unsteckered, that implies exchanges (fl). The other five permutations can be quickly checked for an unsteckered pair that is consistent with interchanging (fl) — essentially checking column F for other rows with l without computing the entire table. None are found, so (ap) would have at least one stecker so the assumption it is unsteckered is abandoned. The next pair can be guessed as unsteckered. The exchange (bt) implies exchanges (pg); that is consistent with (lw) in, but that guess fails to pan out because t and w are steckered.

A: b↔t   B: l↔w   C: k←t   D: x→m   E: m→u   F: j←x
   ↓ ↓      ↓ ↓      * ↑      ↑ *      ↑ *      * ↑
   b t      l w      x t      k z      z f      j k
   ↓ ↓      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑
Q: p↔g      p↔g      p↔g      p↔g      p↔g      p↔g
guessing (b)(t) unsteckered in S leads to the guess (l)(w) unsteckered in S
 C finds stecker (k x)
 D finds stecker (z m)
 E finds stecker (f u)
 F finds (j)
Following those guesses ultimately leads to a contradiction:
A: f↔z   B: m→d   C: p←l   D: f→s   E: p!x   F:
   ↓ ↓      ↑ *      * ↑      ↑ *      ↑ ↑
   u m      z y      r l      u a      r k      
   ↓ ↓      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑
Q: e↔q      e↔q      e↔q      e↔q      e↔q      e↔q
exploit (f z) in A leads to (e q) exchange in Q
 B finds (d y) steckered
 C finds (p r) steckered
 D finds (a s) steckered
 E finds (p x) steckered - but p is already steckered to r! failure

The third exchange (ck) implies exchanges (jm); this time permutation with an unsteckered (hy) would be consistent with exchanging (jm).

A: c↔k   B:       C:       D: h↔y   E:       F:
   ↓ ↓                        ↑ ↑
   c k      i x      n j      h y      u i      g u
   ↓ ↓      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑
Q: j↔m      j↔m      j↔m      j↔m      j↔m      j↔m
guessing (c)(y) unsteckered in S leads to the guess (h)(y) unsteckered in S
At this point, the guess is that the letters chky are unsteckered. From that guess, all the steckers can be solved for this particular problem. The known (assumed) exchanges in are used to find exchanges in, and those exchanges are used to extend what is known about .

Using those unsteckered letters as seeds finds (hy) interchange in and implies (kf) is in ; similarly (cy) interchange in and implies (uo) is in . Examining (uo) in the other permutations finds (tu) is a stecker.

A:       B:       C:       D:       E: h↔y   F:
                                       ↓ ↓
   j a      o s      i v      v s      h y      w e
   ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↓ ↓      ↑ ↑
Q: k↔f      k↔f      k↔f      k↔f      k↔f      k↔f
exploit (hy) in E

A:       B:       C: t←k   D:       E:       F: c↔y
                     * ↑                        ↓ ↓
   o l      d a      u k      f w      m j      c y
   ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↓ ↓      ↑ ↑
Q: u↔o      u↔o      u↔o      u↔o      u↔o      u↔o
exploit (cy) in F shows (tu) are in S

That adds letters tu to the seeds. Those letters were also unknown above, so further information can be gleaned by revisiting: also has (g)(if)(x).

A: c↔k   B: f→x   C:       D: h↔y   E: t→f   F: g←t
   ↓ ↓      ↑ *               ↑ ↑      ↑ *      * ↑
   c k      i x      n j      h y      u i      g u
   ↓ ↓      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑
Q: j↔m      j↔m      j↔m      j↔m      j↔m      j↔m
knowing (tu) in S leads to (g)(if) in S
then (if) in S can be used to find (x) in S

Revisit (kf)(uo) in gives more information:

A:       B: o←p   C: f→n   D: n→p   E: h↔y   F: z→e
            * ↑      ↑ *      ↑ *      ↓ ↓      ↑ *
   j a      o s      i v      v s      h y      w e
   ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↓ ↓      ↑ ↑
Q: k↔f      k↔f      k↔f      k↔f      k↔f      k↔f
exploit (if) in S leads to (nv) in S
 (nv) in S leads to stecker (ps)
 (ps) in S leads to (o)
 (wz) in S leads to (e)

A: o→l   B:       C: t←k   D: i→z   E:       F: c↔y
   ↑ *               * ↑      ↑ *               ↓ ↓
   o l      d a      u k      f w      m j      c y
   ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↓ ↓      ↑ ↑
Q: u↔o      u↔o      u↔o      u↔o      u↔o      u↔o
exploit (if) in S leads to stecker (wz) in S
 (o) in S leads to (l) in S

Another revisit fully exploits (jm):

A: c↔k   B: f x   C: v→j   D: h↔y   E: t→f   F: g←t
   ↓ ↓      ↑ *      ↑ *      ↑ ↑      ↑ *      * ↑
   c k      i x      n j      h y      u i      g u
   ↓ ↓      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑
Q: j↔m      j↔m      j↔m      j↔m      j↔m      j↔m
knowing (nv) in S leads to (j) in S

That addition fills out even more:

A: j→m   B: o←p   C: f→n   D: n→p   E: h↔y   F: z→e
   ↑ *      * ↑      ↑ *      ↑ *      ↓ ↓      ↑ *
   j a      o s      i v      v s      h y      w e
   ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↓ ↓      ↑ ↑
Q: k↔f      k↔f      k↔f      k↔f      k↔f      k↔f
exploit (j) in S leads to (am) in S

A: o→l   B: d←m   C: t←k   D: i→z   E: a↔j   F: c↔y
   ↑ *      * ↑      * ↑      ↑ *      ↑ ↑      ↓ ↓
   o l      d a      u k      f w      m j      c y
   ↑ ↑      ↑ ↑      ↑ ↑      ↑ ↑      ↓ ↓      ↑ ↑
Q: u↔o      u↔o      u↔o      u↔o      u↔o      u↔o
exploit (j)(am) in S leads to (d) in S

Q = ((fk)(jm)(ou)...)
 missing 10 pairings
S = ((am)(c)(d)(fi)(g)(h)(j)(k)(l)(nv)(o)(ps)(tu)(wz)(x)(y)...)
 22 characters so far: missing beqr
 have found all 6 steckers, so (b)(e)(q)(r)

All of is now known after examining 3 exchanges in . The rest of can be found easily.

When a match is found, then the cryptanalyst would learn both the initial rotation of and the plugboard (Stecker) permutation .

Recovering absolute rotor positions for the message key

At this point, the rotor positions for the permutation is not known. That is, the initial positions (and possibly the order) of rotors and are not known. The Poles applied brute force by trying all possible initial positions of the two rotors. With three rotors, knowing which rotor was at position meant there were only two possible ways to load the other two rotors.

Later, the Poles developed a catalog of all the permutations. The catalog was not large: there were six possible combinations of two left rotors with initial settings, so the catalog had 4,056 entries. After using the grill, the Poles would look up in the catalog to learn the order and initial positions of the other two rotors.

Initially, the Germans changed the rotor order infrequently, so the Poles would often know the rotor order before they began working. The rotor order changed every quarter until 1 February 1936. Then it changed every month until 1 November 1936, when it was changed daily.

Recovering the ring setting

The cryptanalyst now knew the plugboard, the rotor order, and the absolute setting of the rotors for the doubled key, but he did not know the ring setting. He also knew what the message key setting should be, but that setting was useless without knowing the ring setting. The ring setting could be anything, and that meant the Poles did not know how to position the rotors for the message body. All the work up to this point had focussed on exploiting the doubled key. To determine the ring setting, the attention now shifted to the actual message.

Here, the Germans had made another mistake. Each message usually started with the text "ANX", which was German an meaning "to:" with the "X" meaning space. The Poles applied brute force here, too. They would go through up to settings to find settings that produced "ANX". Once found, the cryptanalyst would use the absolute setting of the rotors to determine the ring setting. The entire daily key was thus recovered.

Later, the Poles refined the brute force search technique. By examining some messages, they could determine the position of the rightmost rotor; consequently, only 676 rotor positions would have to be tried. Rejewski no longer remembers how this trick worked.[14]

Decline

The grill method is described by Marian Rejewski as being "manual and tedious" and, like the later cryptologic bomb, as being "based... on the fact that the plug connections [in the Enigma's commutator, or "plugboard"] did not change all the letters." Unlike the bomb, however, "the grill method required unchanged pairs of letters [rather than] only unchanged letters."[15] The extra swapped characters reduced the effectiveness of the grid method, so the Poles started looking for other methods. The result was the cyclometer and corresponding card catalog; that method was immune to steckers.

The grill method found application as late as December 1938 in working out the wiring in two Enigma rotors newly introduced by the Germans. (This was made possible by the fact that a Sicherheitsdienst net, while it had introduced the new drums IV and V, continued using the old system for enciphering the individual message keys.)

On 15 September 1938, most German nets stopped encrypting the doubled key with a common setting (the ground setting). The Poles had been able to take advantage of all messages in a net using the same machine settings to encrypt the doubled key. Now most nets stopped doing that; instead, the operator would choose his own ground setting and send it in the clear to the recipient. This change frustrated the grill method and the cyclometer card catalog. One net, the Sicherheitsdienst (SD) net, continued to use a common ground setting, and that net was used to reverse engineer new rotors (IV and V) that were introduced. The SD net traffic was doubly encoded, so the ANX method would not work. The grill method would sometimes fail after the Germans increased the number of plugboard connections to ten on 1 January 1939. When the SD net switched to the new message-key protocol on 1 July 1939, the grill method (and the cyclometer method) were no longer useful.

Here's an example of the new message procedure for a message on 21 September 1938.[16]

2109 -1750 - 3 TLE - FRX FRX - 1TL -172=
HCALN UQKRQ AXPWT WUQTZ KFXZO MJFOY RHYZW VBXYS IWMMV WBLEB
DMWUW BTVHM RFLKS DCCEX IYPAH RMPZI OVBBR VLNHZ UPOSY EIPWJ
TUGYO SLAOX RHKVC HQOSV DTRBP DJEUK SBBXH TYGVH GFICA CVGUV
OQFAQ WBKXZ JSQJF ZPEVJ RO -

The "3 TLE" (German Teile, parts) says it is a 3-part message; the "1TL" (German Teil, part) says this is the first part; the "172" says there are 172 characters in the message (including the message key). For this message, the ground setting "FRX" is transmitted twice in the clear; the ground setting would/should be different for every message on net. Consequently, the Poles could not find the needed sixty message keys encrypted under the same ground setting. Without the same-key message volume, they could not determine the characteristic, so they could not determine the permutations A B C D E F or use the grill. For this message, the daily settings (rotor order, plugboard, and ring settings) were used with "FRX" to decrypt the first six characters ("HCALN U") to obtain the doubled message key ("AGIAGI").

To decrypt these messages, the Poles used other techniques to exploit the doubled message key.

See also

References

External links

Notes and References

  1. Marian Rejewski, Mathematical Solution of the Enigma Cipher, trans Christopher Kasparek, Cryptologia, Vol 6, Number 1, pp 1–18 at 17, January 1982
  2. Take the number of ways to arrange 26 distinct letters (26!) and pair the selected letters. The paired letters interchange, so divide by 213 to account for the two orderings of each pair. The order the pairs are enumerated does not matter, so divide by the number of ways to order the 13 pairs (13!).
  3. Take the number of ways to arrange 26 distinct letters and pair off the first 12 letters; divide by 26 because the pairs can be swapped (AB is same as BA), divide by 6! because the order of the pairs does not matter, and divide by 14! because the order of the trailing 14 characters does not matter.
  4. Web site: Frode Weierud's CryptoCellar | Enigma Test Message from 1930 . 2014-10-07 . dead . https://web.archive.org/web/20141030213421/http://cryptocellar.web.cern.ch/cryptocellar/Enigma/EMsg1930.html . 2014-10-30 ., citing 1930 "Schlüsselanleitung zur Chiffriermachine Enigma I" ["Directions for use of Keys on the Cypher Machine 'Enigma I'"]
  5. http://people.physik.hu-berlin.de/~palloks/js/enigma/enigma-u_v20_en.html Can be checked with a simulator. For example, Select Enigma I, choose reflector A (at the time, the Germans only had one reflector), set the wheel order (II, I, III), set the rings (24, 13, 22), set the plugs (AM, FI, NV, PS, TU, WZ), activate the plugboard, and set the wheels to the ground setting ("FOL"). Typing ABLABL in the input box should produce PKPJXI as the output.
  6. stating, "The fact that the first six letters of each message formed its three-letter key, twice enciphered, was obvious, and I will not dwell on the matter."
  7. at page 129 implies both notations used in 1815.
  8. (page 3 in PDF)
  9. gives an example table of 65 message keys, but only 40 of those keys were distinct. Sixteen keys were repeated at least once. The encrypted key "SYX SCV" was used five times; it corresponded to the message key "AAA". The encrypted message key "RJL WPX" was used four times; it corresponded to "BBB".
  10. states, "When I first assumed that there would be many keys of the sort aaa, bbb, etc., it was only a hypothesis that luckily turned out to be true. The changing tastes of cryptographers were very carefully followed, and other predilictions were uncovered."
  11. stating, "Thus, one of the mysteries of the Enigma cipher, the secret of the message key, was solved. It is interesting that knowledge of neither of the positions of the drums nor the daily keys – in other words, none of the remaining secrets of the Enigma cipher – was needed to attain the result."
  12. Later known as a "female".
  13. One of the D interchanges is accidental due to a double stecker mapping a different interchange.
  14. "...we soon noticed that if some part of the message was to begin with ANX, several positions of drum N would be impossible and should no longer be considered. Since there were a dozen or so messages every day in which one could expect to find the letters ANX at the beginning, it was usually possible to reject, purely by calculation, all impossible positions of drum N leaving just one or two to consider. (I no longer remember which calculations had to be performed and on which theoretical principles they were based.)"

  15. Initially, the plugboard only swapped six pairs of letters. That left more than half of the alphabet unaffected by permutation . The number of steckers changed 1 August 1936; then it could be from five to eight pairs of letters were swapped.
  16. http://cryptocellar.web.cern.ch/cryptocellar/Enigma/tbombe.html