Home › Ciphers › Typex Machine
Typex Machine
Typex was Britain's rotor cipher machine — developed in the 1930s from the commercial Enigma patents, rebuilt to a tougher specification, and trusted with high-grade traffic through the Second World War and beyond. It improved on Enigma in almost every particular: five rotors instead of three, the leftmost pair acting as settable stators, multiple turnover notches, interchangeable rotor wiring, and no plugboard. One thing it shares with its German cousin on this site is a limit of honesty: Typex's historical rotor wirings were never published, so no faithful simulator of the real machine can exist. What runs below is the documented architecture on clearly labelled surrogate wirings generated for this site — the same standard applied to the SIGABA page — and the page says plainly which parts are history and which are stand-ins.
The Typex is a five-rotor reciprocal cipher machine: a letter passes through all five rotors, a reflector, and back, while the rightmost three rotors step between letters. This simulator implements that architecture — stators, multiple notches, no plugboard — on surrogate wirings, because the historical wirings remain unpublished. Settings, stepping and reciprocity behave as the real machine's did; the wiring tables are stand-ins and are labelled as such everywhere they appear.
Type X, in RAF service the Typex Mk II; the standard British high-grade machine of the Second World War.
Run the machine — a traced example is loaded
End positions AAACM · rotor 4 stepped at letters 2 and 7, when rotor 5 sat on its notches B and G
Positions per letter: AAAAB → AAABC → AAABD → AAABE → AAABF → AAABG → AAACH → AAACI → AAACJ → AAACK → AAACL → AAACM
Everything runs in your browser — nothing is uploaded. The wirings are this site's disclosed surrogates, not the historical tables.
Five rotors, two of them standing still
A Typex letter's journey: in through the rightmost rotor, leftwards through all five, into a reflector, and back through all five by the return paths — the reciprocal design it shares with Enigma, so the same settings decipher. The British differences are the substance. The leftmost two rotors are stators: the operator sets their positions as part of the key, but they never step during a message, contributing two extra keyed alphabets without moving parts. The rightmost three step, and they step richly: each carries multiple turnover notches (in this simulator, rotor 3 has three, rotor 4 four, rotor 5 four), so the middle rotors advance far more often than Enigma's stately once-per-revolution, and the stepping pattern irregularly repeats. There is no plugboard — Typex spent its complexity budget on rotors instead, with lugs on the rotor tyres and, in service, rotors whose internal wiring could be reversed and re-lugged by the holding unit. In this simulator ring settings are fixed at A and the rotor order is fixed; the key you control is the five starting positions, stators included.
Read the loaded trace: rotor 5 (rightmost) advances every letter; at letters 2 and 7 it sits on notches (B, then G) and knocks rotor 4 forward; rotor 3 will step when rotor 4 reaches one of its own notches (E, M, S, X) — run thirty A's and the end positions AAFFE show all three moving rotors displaced. As with every reflector machine, no letter can encipher to itself, a fact the build suite checks across the alphabet.
Britain rebuilds the rotor machine
Typex began in the mid-1930s as a British development of the commercial Enigma — the Air Ministry acquired the patents' machines and rebuilt the design through Creed & Company into something stronger: more rotors, stators, multiple notches, printed output on paper tape and, eventually, keyboard input — a teleprinter's manners on a cipher machine. The Mk II became the standard high-grade system of the RAF and the Army, served the Commonwealth and, in adapted forms (the Combined Cipher Machine arrangements), carried inter-Allied traffic alongside the American SIGABA. Its security record was the one its designers wanted: there is no wartime break of properly used Typex in the public record, and the machine's long service — into the postwar decades — reflects that. What never entered the public record is the wiring: unlike Enigma's, reconstructed from captures and documents, Typex's rotor tables stayed classified and unpublished, which is why this page simulates the architecture on labelled surrogates rather than pretending to the original.
The surrogate wirings, disclosed
| Rotor 1 (stator) | OSUCMZFXWDNHLBAPJEKRGVYQTI |
|---|---|
| Rotor 2 (stator) | KUYAORWSLHIEBZTFQPCXNMGJDV |
| Rotor 3 · notches C K R | ICGLPUNDXSYFRJWVMQKZOEHABT |
| Rotor 4 · notches E M S X | VYQKDCSPUMBEXOJTNLAZHFWGRI |
| Rotor 5 · notches B G P W | MOYADGVCKRXPEJIBSWNTHZFQLU |
| Reflector | NWLITKORDQFCYAGZJHXEVUBSMP |
These tables were generated deterministically for this site (a seeded shuffle, documented in the engine's header) and are printed here so that anyone can reproduce the simulator's behaviour exactly — or check it. They are not Typex wirings: the historical tables were never published, and any site that prints "the Typex wiring" without a source is printing an invention. What is historical in the simulator is the architecture around the tables: five rotors, two static, multiple notches, reflector, no plugboard, ring settings at A.
What the simulator can honestly show
Example 1 — ATTACK AT DAWN at AAAAA
Run live above, with the per-letter position trace printed under the result. The two A's of ATTACK encipher differently (J, then Z) because rotor 5 has already moved — the polyalphabetic heartbeat of every rotor machine. Set the same start positions, switch to Decipher, feed the ciphertext back, and the plaintext returns: reciprocity, the reflector's gift.
Example 2 — thirty A's: the stepping, isolated
A constant plaintext strips the machine to its motion: rotor 5 cycles steadily, rotor 4 advances five times as rotor 5 crosses its notches, and rotor 3 — which steps only while rotor 4 stands on one of its own notches, E, M, S or X — is caught in a notch window and also moves five steps. Enigma's middle rotor would not have moved at all in thirty letters. That density of stepping is Typex's signature improvement, and it is architecture, so the surrogate demonstrates it faithfully.
Typex's record, and this simulator's limits
The honest summary of Typex cryptanalysis is short: no wartime break of correctly used Typex is in the public record. The design closed Enigma's easiest doors — more rotors and stators deepen the key, multiple notches deny the analyst a predictable stepping cycle, the absence of a plugboard removes that whole attack surface, and unit-reversible rotors multiplied the wiring variants. What protected it in practice was the same thing that protected SIGABA: complexity correctly used, plus procedures. None of that transfers to this simulator as a security claim — its wirings are public, printed on this page, and its purpose is teaching. The lesson it teaches accurately is the architectural one: why the British machine was the harder problem.
- Security status: the historical machine was never publicly broken in wartime service; this simulator is a teaching model on public wirings.
- What the design denies: predictable stepping, a plugboard to attack, and shallow key depth.
- The standing caveat: surrogate wirings — behaviour is faithful, tables are stand-ins, and the page never confuses the two.
The rotor family
| Relative | How it differs | Solve it with |
|---|---|---|
| Enigma | Three stepping rotors, a plugboard, single notches — the design Typex was built to outclass | The Enigma page |
| SIGABA | The American answer: rotor banks stepping other rotors — irregularity by machinery, not notches | The SIGABA page |
| Lorenz | Not a rotor machine at all: pin wheels generating a Vernam keystream for teleprinter traffic | The Lorenz page |
| M-209 | The tactical end of mechanisation: pin-and-lug wheels in a lunchbox | The M-209 page |
Typex and SIGABA are the two Allied flagships, and comparing them is the fastest education in rotor design: America bought irregular stepping with a second bank of rotors, Britain bought depth and notch density in a single bank. Both worked. The German Lorenz, solving a different problem (online teleprinter encryption), shows the third road — generate the keystream, don't substitute through rotors at all.
The machine in the background
Typex lacks Enigma's mythology — no single dramatic break, no film — and its cultural footprint matches: it appears in signals memoirs and museum galleries (Bletchley Park displays machines) as the dependable British workhorse, the machine in the background of the same rooms where Enigma traffic was being read. Its afterlife is this page's problem in miniature: a machine important enough to simulate, documented enough to simulate honestly, and classified enough that the simulation must label its stand-ins. That labelling is not a defect of the page; it is the accurate historical fact about Typex, stated where a user will see it.
Read the machine
Practice 1 — decipher the loaded example
Same settings, ciphertext in, and the reflector does the rest. No mode change of substance — but use the Decipher setting to make the intent plain.
Reveal the answer
ATTACKATDAWN — reciprocity returns the plaintext exactly, and the end positions are again AAACM: the machine ends a decipherment in the same state as the encipherment that produced the text.
Practice 2 — the stator's contribution
Rotor 1 is a stator: it never steps, but its position is part of the key. Predict whether the ciphertext changes a little or completely.
Reveal the answer
Completely — every letter's path passes through rotor 1 in both directions, so shifting the stator re-keys the whole machine for every letter, not just some. That is why the stators matter despite standing still, and why the starting-positions field demands all five letters.
Frequently asked questions
Why aren't the real Typex wirings used?
Because they were never published. Enigma's wirings are known from wartime documents and captures; Typex's stayed classified, and no authoritative table exists in the open literature. Rather than invent tables and call them real — the failure this site corrects wherever it finds it — the simulator generates its own tables by a documented seeded process, prints them on the page, and labels them surrogates in the tool, the reference table and the engine itself.
Did Typex really have no plugboard?
Correct — where Enigma spent much of its key strength on the Steckerbrett, Typex put its strength into the rotor bank: five rotors, two of them stators, multiple notches, and rotors that units could reverse and re-lug. The architectures are cousins, not copies, and the difference is a deliberate British design decision.
What do the starting positions mean — why five letters?
One position per rotor, stators included: the two leftmost letters set the stationary rotors, the three rightmost set the stepping rotors' start. All five are key. A message key in service would be chosen per message and transmitted by the period's indicator procedures; here you simply type it.
Can a letter encipher to itself on Typex?
No — the reflector guarantees it, as on Enigma: a letter's path out and back can never return the letter itself. The build suite verifies the property across the alphabet at the default settings. On the real machine this was a genuine (if minor) cryptanalytic handle; on the simulator it is a correctness check.