Materials for one lesson (45 minutes) or two (90 minutes) on how the Polish Cipher Bureau broke Enigma. For secondary school: mathematics (permutations, probability), computer science (search, complexity) and history (intelligence before the Second World War). Students work on the worksheets and in the emulators of the series; nothing needs to be installed.
Aim. Students explain why the doubly enciphered message key was Enigma’s weakness, find the cycles of a permutation and estimate how much work the sheets and the bomba required. You need: a projector, printed worksheets 1–3 (one per pair), optionally two sheets printed on transparency film.
| Time | What happens | Material |
|---|---|---|
| 5′ | Introduction. The teacher enciphers a word in the emulator on the projector, then changes one input letter and shows that the whole ciphertext changes. Question for the class: what do you need to know to read a message? | Free emulator |
| 10′ | Pairs solve tasks 1 and 2 of worksheet 1: they encipher a message key and match the first letters of the indicators with the fourth. | Worksheet 1 |
| 10′ | Task 3 of worksheet 1: cycles of a permutation. Cyclometer demonstration: the cycle lengths come out the same for every plugboard. Task 4 is discussed together. | Cyclometer |
| 10′ | On 15 September 1938 the Germans change the procedure. Demonstration of the Zygalski sheets, then task 1 of worksheet 2 (females). With transparencies: two sheets laid on top of each other against a window. | Sheets, worksheet 2 |
| 7′ | Demonstration of the cryptologic bomba and one calculation from worksheet 3: how many positions must be checked and how long that takes by hand. | Bomba, worksheet 3 |
| 3′ | Summary: Pyry, end of July 1939. The Poles show the French and the British the reconstructed Enigma, the methods, the sheets and the bomba. Closing question: which of the three methods depended most on a mistake on the German side? | Step 16 |
History links in through step 16 (Pyry) and the branch on the wiring reconstruction: the role of French intelligence material alongside the mathematics. Computer science: searching all positions and dividing the work between six bombas. We do not cite curriculum clauses; match them to your own syllabus.
1938, before mid-September. All operators of one network start the whole day from the same ground setting. Each chooses three letters as the message key, types them twice and sends the result as a six-letter indicator at the start of the message.
Daily key (from captured tables, for task 1 only):
Set the daily key in the emulator and encipher the message key , typed twice. Write down the indicator.
Indicator: ______________ Answer:
Here are indicators from one day. You do not know the daily key. For each, write the pair: first letter → fourth letter. The same message key gives the same plaintext letter in places 1 and 4, so each pair is a fragment of one permutation, which Rejewski called AD.
How many different letters of the permutation AD do you know? ______ Answer:
With a few dozen indicators the whole permutation AD is known. Split it into cycles: start at A, follow the arrows until you return to A, then take the smallest letter not yet used. Write down the cycle lengths.
Cycles: ________________________________________________
Answer:
Why do the cycle lengths not depend on the plugboard? Hint: the plugboard S acts before and after the rotors, and AD with the plugboard is S · (AD without plugboard) · S.
______________________________________________________
Answer: the plugboard only renames letters. If x → y without the plugboard, then S(x) → S(y) with it, so every cycle becomes a cycle of the same length with other letters. The same day without the plugboard: . That is why the catalogue of characteristics needed only 6 × 17,576 = 105,456 entries instead of billions: the plugboard was worked out separately.
From 15 September 1938 the operator chooses the starting position himself and sends it in clear, followed by the doubly enciphered message key. There is no common position for the day any more and the cycle catalogue stops working. What remains is the same letter in places 1 and 4, 2 and 5, or 3 and 6 of the indicator. Such places were called females; Henryk Zygalski built his method on them.
Mark the headers with a female and write down the pair of places where it occurred (1–4, 2–5 or 3–6).
| No. | Position in clear | Indicator | Female? |
|---|
Females: .
A sheet is a 26 × 26 grid for one rotor order and one position of the left rotor. How many sheets are needed for three rotors (6 orders)? And from 15 December 1938, when rotors were chosen from five?
______________________
Answer: 6 × 26 = 156 sheets; 60 × 26 = 1,560 sheets. In mid-December 1938 only two of the six sets for three rotors were ready.
On a sheet for order , of the squares are holes. We stack sheets, one per female, and look for a square that lets light through. How many of the 676 squares stay open by chance after k sheets? From how many sheets do we expect fewer than one false square?
Answer: 676 · pk, where p = . Fewer than one false square from sheets. That is why a dozen or so females from one day were needed.
Pair exercise (with transparencies): print two sheets of the same order for two different left-rotor positions, lay one over the other and count the squares that let light through. Compare with the result of task 3 for k = 2.
Rejewski’s bomba is three pairs of Enigma doubles that run through all rotor positions by themselves and stop where three females agree. The first bombas worked in autumn 1938; one full run took 1.5–2 hours.
How many rotor positions must be checked for one day (3 rotors, 6 orders, 26 × 26 × 26 positions)?
______________________ Answer: 6 × 17,576 = 105,456.
A cryptologist with an Enigma checks 2 positions per minute by hand. How many days of non-stop work does one day of keys take? And for six bombas working in parallel, each on one order?
______________________ Answer: 105,456 / 2 = 52,728 minutes, about 879 hours, more than 36 days. Six bombas: one run, 1.5–2 hours.
In a random position each of the three females agrees with probability about 1/26. How many false stops of the bomba do you expect for the whole day?
______________________ Answer: 105,456 / 26³ = 105,456 / 17,576 = 6, about one per order. Each stop was checked by hand on an Enigma.
The bomba works only if the female’s letter is not connected to the plugboard. With k plugboard pairs, 26 − 2k letters are free. What is the chance for k = 6, and from 1 January 1939, when there could be 10 pairs?
______________________ Answer: 14/26 ≈ 54% and 6/26 ≈ 23%. Three females must succeed at once, so the bomba could help less and less often.
From 15 December 1938 rotors were chosen from five. How many orders must be searched and how many bombas are needed to keep the time at 1.5–2 hours?
______________________ Answer: 5 × 4 × 3 = 60 orders, ten times more, so 60 bombas instead of 6.