The Enigma Machine
Cryptography Fundamentals
Chapter 3 · The Enigma Machine — Mechanism & Daily Operation
Chapter 2 closed on a bridge: Enigma is, structurally, a polyalphabetic substitution cipher — the same family as Vigenère — but instead of cycling through a short repeating keyword, it mechanically generates a new substitution alphabet on every single keystroke. This chapter is about exactly how it did that: the physical components, the electrical path a signal actually takes, and the daily settings that — per Kerckhoffs's Principle (Chapter 1) — were the only real secret in the whole system.
The Physical Machine, Component by Component
A military Enigma (the German Wehrmacht/Luftwaffe 3-rotor variant this chapter focuses on) is built from five functional parts, wired together in series:
| Component | Role |
|---|---|
| Keyboard | 26 keys, A-Z; pressing one starts an electrical signal |
| Plugboard (Steckerbrett) | Swaps pairs of letters before and after the rotor stack |
| Rotors (3, chosen from 5 or later 8) | Each is an internally-wired substitution alphabet that also physically rotates |
| Reflector (Umkehrwalze) | Sends the signal back through the rotors a second time, in reverse |
| Lampboard | 26 lamps, A-Z; whichever one lights up is the ciphertext letter |
The Electrical Pathway — Tracing a Keypress
Pressing a single key completes a circuit that travels through the entire machine in one direction, then back through most of it in the other direction, before finally lighting a lamp. In order:
Every keypress passes through the rotor stack twice — once outward toward the reflector, once back — which is exactly what makes Enigma reciprocal: with identical settings, encrypting a letter and decrypting a letter are literally the same operation run through the same circuit. That's why the same machine, same daily settings, both encrypted and decrypted — a genuinely elegant piece of engineering, and (as Chapter 4 shows) also the source of its most damaging flaw.
The Rotors — Wiring & Stepping
Each rotor is a disc with 26 electrical contacts on each face, internally wired so that entering on contact A might exit on contact F, entering on B might exit on U, and so on — a fixed, physical monoalphabetic substitution baked into the metal (echoing Chapter 2's substitution ciphers, just implemented as wiring rather than a lookup table).
What makes it more than a fixed substitution is that the rightmost rotor physically advances one position after every keypress, like the units wheel on an odometer — so the substitution it performs on the very next letter is different again. When the rightmost rotor completes a full revolution, it "kicks" the middle rotor forward one position too (with a quirky, historically fiddly detail called double-stepping, where the middle rotor can occasionally step twice in a row); the leftmost rotor advances only rarely. The practical effect: the combined substitution performed by all three rotors together doesn't meaningfully repeat until many thousands of letters have been typed — nothing like Vigenère's short, repeating keyword from Chapter 2.
The Reflector (Umkehrwalze) — Symmetric But Flawed
The reflector is wired as 13 fixed pairs covering all 26 letters (A always reflects to, say, Y and vice versa), and critically, it has one structural property: no letter can ever reflect back to itself. That single design choice — which is what makes the machine reciprocal at all — turns out to be Enigma's single most exploitable weakness, covered in full in Chapter 4.
The Plugboard (Steckerbrett) — Extra Scrambling
Before the German military added it, Enigma's civilian/commercial version relied on the rotors and reflector alone. The plugboard sits at both the very start and very end of the electrical path (steps 2 and 10 above) and swaps pairs of letters via physical cables — typically 10 pairs swapped, out of 26 letters, on a standard military setup. It doesn't change the fundamental structure of the cipher at all — it's still the same rotor-and-reflector substitution underneath — but it multiplies the number of possible daily configurations enormously, which mattered a great deal for the keyspace calculation below.
The Daily Key Settings — What Was Actually Secret
Per Chapter 1's Kerckhoffs's Principle, the machine's design was not secret — the Allies had working Enigma machines. What was secret, distributed via monthly codebooks to every operator, was the daily key:
- Rotor choice & order (Walzenlage) — which 3 of the available rotors were installed, and in what left-to-right order.
- Ring settings (Ringstellung) — an offset between each rotor's internal wiring and its outer letter ring.
- Initial rotor positions (Grundstellung) — the starting letter each rotor was turned to before the message was typed.
- Plugboard pairs (Steckerverbindungen) — which ~10 letter pairs were physically cabled together that day.
Every operator sending or receiving a message that day used the identical settings — get any one piece wrong, and the decrypted output is unreadable garbage from the very first letter.
Enigma's Keyspace — Astronomically Large...
Combining rotor choice and order, ring settings, starting positions, and plugboard pairings, the total number of possible daily configurations for a 3-rotor military Enigma has been estimated at roughly 10¹¹⁴ — a number so large that brute-forcing every possible setting, even with modern computing power, remains completely infeasible. On paper, this looks like an unbreakable system.
Hands-On Exercises
Describe, in order, the full electrical path a single keypress takes through an Enigma machine, from the key being pressed to a lamp lighting up. Be specific about how many times the signal passes through the rotor stack, and in which directions.
📄 View solutionThe reflector guarantees that a letter can never encrypt to itself. Without looking ahead to Chapter 4, reason about why this specific property — on its own — could plausibly give a codebreaker useful information about a message, even without knowing the daily key.
📄 View solutionA 3-rotor military Enigma selects 3 rotors, in a specific left-to-right order, from a set of 5 available rotors. How many distinct rotor choice-and-order combinations are possible? Show your work.
📄 View solutionChapter 3 Quick Reference
- Signal path: keyboard → plugboard → 3 rotors (forward) → reflector → 3 rotors (reverse) → plugboard → lampboard
- Rotors are fixed internal substitutions that also physically step after each keypress — the source of the "new alphabet every keystroke" property
- Reflector makes the machine reciprocal (same settings encrypt and decrypt) but guarantees no letter ever maps to itself — Chapter 4's key weakness
- Plugboard swaps ~10 letter pairs at the start and end of the path, multiplying the keyspace without changing the underlying structure
- Daily key = rotor choice/order + ring settings + starting positions + plugboard pairs — the only real secret, per Kerckhoffs's Principle (Ch.1)
- Full keyspace ≈ 10¹¹⁴ — looks unbreakable by brute force alone
- Next chapter: Breaking Enigma — how the reflector's flaw, cribs, and operational mistakes made that astronomical keyspace irrelevant in practice