Lorenz explained in plain terms means understanding the cipher machine that carried Germany’s most secret wartime messages, a device with twelve wheels that produced a stream of coded letters, and that Britain broke with the world’s first programmable computer. The central question is how a machine with more settings than Enigma could be broken at all, and the answer is that one careless operator sent the same message twice, and a young mathematician turned that mistake into the key.
Lorenz is the name given to a family of German teleprinter cipher machines, the SZ40 and SZ42, built by the Lorenz company and used by the German Army High Command from 1941. It encrypts letters with twelve pin wheels, runs on a daily key, and it is built so that each letter is combined with a stream of key characters, with the wheels stepping in a pattern that never repeats quickly.
This article explains what Lorenz is, how it works, and where its story still matters today.
Key takeaways
- Lorenz is a teleprinter cipher machine used by Germany from 1941.
- It encrypts with twelve pin wheels in three groups.
- It carried high-command traffic, codenamed Tunny by Britain.
- Bill Tutte broke it in 1942 from a single repeated message.
- Colossus, the first programmable computer, broke it at scale.
What Lorenz is
Lorenz is a machine that encrypts messages letter by letter, passing each letter through a stream of key characters generated by its wheels. The operator types a message on a teleprinter, the machine adds a key character to each letter, and the result is sent by radio, and because the wheels step with every letter, the key stream never repeats within a message.
Its signature feature is the twelve wheels. Five chi wheels, five psi wheels, and two motor wheels carry pins that can be set up or down, and the pattern of pins decides how each wheel steps, which means the machine offers an enormous number of possible settings.
The design was a reaction to the needs of a modern army. High command needed to send long strategic messages quickly and securely, and the Lorenz machine did the work with electricity instead of pencil and paper, so generals could exchange orders that field ciphers could never have protected.
It became the most important cipher machine of the war after Enigma, and its breaking became one of the great stories of Bletchley Park. The British codenamed its traffic Tunny, and when the Germans added wheels and changed procedures, the codebreakers built Colossus to find the daily settings, which let the Allies read orders from the highest level of the German army.
Its most famous property is the scale of the break. With twelve wheels and thousands of possible pin patterns, the machine offered far more settings than Enigma, yet it was broken by pure mathematics before a single machine had ever been seen, and that achievement is what made the break so remarkable.
Our guide to Enigma explains the rotor machine that protected field messages, and our guide to Vigenère explains the table cipher that came three centuries earlier.
How Lorenz works
Everything starts with the daily key, which sets up the machine each morning. The operator sets the pins on all twelve wheels, chooses their starting positions, and shares that setup with the receiver through codebooks, which means both sides must match exactly or the message stays unreadable.
Each letter begins with the chi wheels, which generate the main key stream. The five chi wheels step with every letter, each one contributing a bit to the key character, and the five bits together decide how the plaintext letter is changed, which means the chi wheels alone would produce a repeating but very long key stream.
The psi wheels are what make the encryption work as a whole. The five psi wheels step irregularly, controlled by the motor wheels, and their bits are combined with the chi bits, which means the key stream is the sum of two patterns, and because the psi wheels sometimes stand still, the stream has a structure the codebreakers learned to exploit.
The motor wheels decide when the psi wheels move. Two motor wheels carry pins that control the stepping of the psi wheels, so that the psi wheels advance only on certain letters, and because the motor pattern is itself irregular, the key stream never settles into a simple rhythm.
The addition step combines the key with the message. Each plaintext letter is added to the key character using the teleprinter alphabet, which means the ciphertext letter is the sum of the two, and because the addition is reversible, the receiver subtracts the same key stream to recover the message.
Decryption runs the machine with the same daily key. The receiver sets up the wheels exactly as the sender did, feeds the ciphertext through, and the plaintext comes out letter by letter, which means the same machine encrypts and decrypts, and that symmetry is what made Lorenz practical for high command.

Comparing Lorenz with other wartime ciphers
Lorenz is one of several ciphers that shaped the Second World War, and each was built with a different emphasis. Enigma is the rotor machine that protected field messages, Vigenère is the table cipher from the sixteenth century, and Lorenz is the teleprinter machine that carried high-command traffic, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Lorenz | Enigma | Vigenère |
|---|---|---|---|
| Era | 1941 to 1945 | 1918 to 1945 | 1586 onwards |
| Method | Pin wheels and stream | Rotors and plugboard | Polyalphabetic table |
| Wheels | Twelve | Three or more | None |
| Broken by | Tutte and Colossus | Bombe and mathematics | Kasiski examination |
| Best for | Historical interest | Historical interest | Historical interest |
The practical result is that Lorenz is the right choice for studying machine cryptanalysis, Enigma suits the same study at field level, and Vigenère fits the classical foundations instead.
Where Lorenz is used
Research uses it as a case study in stream-cipher design. Cryptographers still cite Lorenz when they discuss how key streams are built, because it is the clearest example of a wheel-driven stream, and that lesson shapes how new ciphers are judged today.
Teaching uses it to show how codebreaking works. Lorenz is clean enough to explain in a lecture and well documented enough to simulate in an afternoon, which makes it a favourite example in cryptography courses that cover the history of the field and the design ideas that shaped it.
Museums use it to tell the story of Colossus. Surviving Lorenz machines and a rebuilt Colossus stand at Bletchley Park, where visitors can see the wheels and watch the codebreaking run, and that hands-on experience is what makes the story real for people who have never seen a cipher machine.
Popular culture uses it as the symbol of secret codes. Films and books about Bletchley Park made Lorenz and Colossus famous, and that fame is why the machine appears in classrooms and documentaries whenever anyone explains what cryptography is for.
Standards history uses it to mark the computer era. Lorenz was part of the moment when codebreaking needed machines of its own, and it represents the point where cryptography and computing became one field, which means historians return to it whenever they ask how the computer age began.
Strengths and limits
The greatest strength of Lorenz is its key stream. A machine with twelve wheels and irregular stepping produces a stream far too long to repeat within a message, and that length is real, measured in the combinations of pins and starting positions, and confirmed by the designers’ own counting of the possibilities.
It is also a strength that the machine was fast to operate. An operator could feed a long message through Lorenz as fast as a teleprinter could type, and that speed is worth more than cleverness in a field where a cipher nobody can use protects nobody.
The limits are real, though, and the biggest is operator error. A message sent twice with the same settings gave Tutte the opening he needed, and the psi wheels’ irregular stepping created patterns the codebreakers could measure, which is why Lorenz is studied as a lesson in how people and patterns break ciphers, not just maths.
Lorenz checklist
- Use Lorenz for study and history, not for new systems.
- Remember it used twelve pin wheels in three groups.
- Study its wheels to understand stream-cipher design.
- Compare it with Enigma to see the machine trade-off.
- Note its daily keys when studying the break.
- Test against published examples before trusting any simulation.
- Keep keys random and protect them as carefully as with any cipher.
- Use a proper procedure, never reuse a daily key.
- Choose AES for any system that needs real protection today.
Frequently asked questions
What is Lorenz in simple terms?
It is a German teleprinter cipher machine with twelve pin wheels that adds a key stream to each letter, used by high command from 1941 until the end of the war.
Who broke Lorenz?
Bill Tutte, a young mathematician at Bletchley Park, worked out the wheel structure in 1942 from a single message sent twice, and Tommy Flowers built Colossus to break it at scale.
How is Lorenz different from Enigma?
Both are wartime machines, but Lorenz is a stream cipher with twelve wheels for high-command teleprinter traffic, while Enigma is a rotor cipher for field radio messages.
Is Lorenz still secure?
No, its design is fully understood and its settings can be recovered with modern computers, so it is studied as history rather than used for new systems.
What is Colossus?
It is the electronic machine built at Bletchley Park that tested Lorenz wheel settings at speed, and it is regarded as one of the first programmable computers.
When should I study Lorenz?
When you learn the history of cryptography, when you teach codebreaking, or when you want a machine whose story explains why computing and cryptography grew up together.
The bottom line
Lorenz explained in one line is this: the machine that met the computer, a twelve-wheel cipher that fell to mathematics and the first programmable machine ever built.
It is proof that a cipher is only as strong as its operators, and the reason it still matters is that every stream cipher designed since has been judged partly by the lesson Lorenz taught.
This article is general information about how Lorenz works, not advice about choosing encryption for a particular device or system.







