ArticleslgStudy

computer science

Cryptanalysis of the Lorenz cipher

Cryptanalysis of the Lorenz cipher is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Cryptanalysis of the Lorenz cipher rather than just read about it. In short: Cryptanalysis of the Lorenz cipher was the process that enabled the British to read high-level German army messages during World War II. The British Government Code and Cypher School (GC&CS) at Bletchley Park decrypted many communications between the Oberkommando der Wehrmacht (OKW, German High Command) in Berlin and their army commands throughout occupied Europe, some of which were signed "Adolf Hitler, Führer".

Cryptanalysis of the Lorenz cipher — main illustration
Cryptanalysis of the Lorenz cipher — illustration

Key takeaways

  • Cryptanalysis of the Lorenz cipher belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Cryptanalysis of the Lorenz cipher to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Cryptanalysis of the Lorenz cipher from memory before moving on to harder problems.

Reference excerpt

Cryptanalysis of the Lorenz cipher was the process that enabled the British to read high-level German army messages during World War II. The British Government Code and Cypher School (GC&CS) at Bletchley Park decrypted many communications between the Oberkommando der Wehrmacht (OKW, German High Command) in Berlin and their army commands throughout occupied Europe, some of which were signed "Adolf Hitler, Führer". These were intercepted non-Morse radio transmissions that had been enciphered by the Lorenz SZ teleprinter rotor stream cipher attachments. Decrypts of this traffic became an important source of "Ultra" intelligence, which contributed significantly to Allied victory. For its high-level secret messages, the German armed services enciphered each character using various online Geheimschreiber (secret writer) stream cipher machines at both ends of a telegraph link using the 5-bit International Telegraphy Alphabet No. 2 (ITA2). These machines were subsequently discovered to be the Lorenz SZ (SZ for Schlüssel-Zusatz, meaning "cipher attachment") for the army, the Siemens and Halske T52 for the air force and the Siemens T43, which was little used and never broken by the Allies. Bletchley Park decrypts of messages enciphered with the Enigma machines revealed that the Germans called one of their wireless teleprinter transmission systems "Sägefisch" (sawfish), which led British cryptographers to refer to encrypted German radiotelegraphic traffic as "Fish". "Tunny" (tunafish) was the name given to the first non-Morse link, and it was subsequently used for the cipher machines and their traffic. As with the entirely separate cryptanalysis of the Enigma, it was German operational shortcomings that allowed the initial diagnosis of the system, and a way into decryption. Unlike Enigma, no physical machine reached allied hands until the very end of the war in Europe, long after wholesale decryption had been established. The problems of decrypting Tunny messages led to the development of "Colossus", the world's first electronic, programmable digital computer, ten of which were in use by the end of the war, by which time some 90% of selected Tunny messages were being decrypted at Bletchley Park. Albert W. Small, a cryptanalyst from the US Army Signal Corps who was seconded to Bletchley Park and worked on Tunny, said in his December 1944 report back to Arlington Hall that:

Daily solutions of Fish messages at GC&CS reflect a background of British mathematical genius, superb engineering ability, and solid common sense. Each of these has been a necessary factor. Each could have been overemphasised or underemphasised to the detriment of the solutions; a remarkable fact is that the fusion of the elements has been apparently in perfect proportion. The result is an outstanding contribution to cryptanalytic science.

German Tunny machines

The Lorenz SZ cipher attachments implemented a Vernam stream cipher (using the exclusive or (XOR) function) to encrypt the plaintext bits by combining them with the key bits to produce the ciphertext at the transmitting end. At the receiving end, an identically configured machine produced the same key stream which was combined with the ciphertext to produce the plaintext, i.e. the system implemented a symmetric-key algorithm. The key stream was generated by a complex array of twelve wheels, ten of which delivered what should have been a cryptographically secure pseudorandom number stream. This stream was a product of XOR-ing the bits of the 5-bit character generated by the right hand five wheels (the chi (χ) wheels) with the bits from the left hand five (the psi (ψ) wheels). The chi wheels always moved on one position for every incoming plaintext or ciphertext character, but the psi wheels' movement was determined by the central two mu (μ) or "motor" wheels. The μ61 wheel moved on after each character and its cams determined the μ37 wheel movement, whose cams in turn controlled the psi wheels' movement. On all but the earliest machines, there was an additional factor that played into the moving on or not of the psi wheels. These were of four different types and were called "Limitations" at Bletchley Park. All involved some aspect of the previous positions of the machine's wheels. The numbers of cams on the set of twelve wheels of the SZ42 machines totalled 501 and were co-prime with each other, giving an extremely long period before the key sequence repeated. Each cam could either be in a raised position, in which case it generated x (as written at Bletchley Park) and equivalent to a binary digit 1 to the logic of the system, or in the lowered position when it generated • equivalent to a binary digit 0. The total possible number of patterns of raised cams was 2501 which is an astronomically large number. In practice about half of the cams on each wheel were in the raised position as the Germans realized that otherwise there would be runs of x's and •'s, a cryptographic weakness. The process of working out the wheel cam patterns was called "wheel breaking" at Bletchley Park. Deriving the start positions of the wheels for a particular transmission was termed "wheel setting" or simply "setting". The fact that the psi wheels all moved together, but not with every input character, was a major weakness of the machines that contributed to British cryptanalytical success.

Secure telegraphy

… excerpt ends here. Continue reading the full article.

Illustrations

Cryptanalysis of the Lorenz cipher: Cams on wheels 9 and 10 showing their raised (active) and lowered (inactive) positions. An active cam reversed the value of a bit (•→x and x→•).
Cams on wheels 9 and 10 showing their raised (active) and lowered (inactive) positions. An active cam reversed the value of a bit (•→x and x→•).
Cryptanalysis of the Lorenz cipher: A Lorenz SZ42 cipher machine with its covers removed at The National Museum of Computing on Bletchley Park
A Lorenz SZ42 cipher machine with its covers removed at The National Museum of Computing on Bletchley Park
Cryptanalysis of the Lorenz cipher: A length of tape, 12 millimetres (0.47 in) wide, produced by an undulator similar to those used during the Second World War for intercepted 'Tunny' wireless telegraphic traffic at Knockholt, for translation into ITA2 characters to be sent to Bletchley Park
A length of tape, 12 millimetres (0.47 in) wide, produced by an undulator similar to those used during the Second World War for intercepted 'Tunny' wireless telegraphic traffic at Knockholt, for translation into ITA2 characters to be sent to Bletchley Park
Cryptanalysis of the Lorenz cipher: A typical distribution of letters in English language text. Inadequate encipherment may not sufficiently mask the non-uniform nature of the distribution. This property was exploited in cryptanalysis of the Lorenz cipher by weakening part of the key.
A typical distribution of letters in English language text. Inadequate encipherment may not sufficiently mask the non-uniform nature of the distribution. This property was exploited in cryptanalysis of the Lorenz cipher by weakening part of the key.
Cryptanalysis of the Lorenz cipher: A rebuilt British Tunny at the National Museum of Computing, Bletchley Park. It emulated the functions of the Lorenz SZ40/42, producing printed cleartext from ciphertext input.
A rebuilt British Tunny at the National Museum of Computing, Bletchley Park. It emulated the functions of the Lorenz SZ40/42, producing printed cleartext from ciphertext input.

Worked examples

Example 1 — a first encounter with Cryptanalysis of the Lorenz cipher

Start with the simplest possible case. Write down what Cryptanalysis of the Lorenz cipher claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Cryptanalysis of the Lorenz cipher before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Cryptanalysis of the Lorenz cipher ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Cryptanalysis of the Lorenz cipher

In research
Cryptanalysis of the Lorenz cipher appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Cryptanalysis of the Lorenz cipher in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Cryptanalysis of the Lorenz cipher is common in secondary-school and first-year university syllabi. It links to neighbouring topics Bletchley Park, History of computing in the United Kingdom, History of cryptography, so understanding it makes those chapters shorter.
In everyday life
Look for Cryptanalysis of the Lorenz cipher outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Cryptanalysis of the Lorenz cipher” →

How to study Cryptanalysis of the Lorenz cipher in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Cryptanalysis of the Lorenz cipher means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Cryptanalysis of the Lorenz cipher out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Cryptanalysis of the Lorenz cipher in simple terms?

Cryptanalysis of the Lorenz cipher was the process that enabled the British to read high-level German army messages during World War II. The British Government Code and Cypher School (GC&CS) at Bletchley Park decrypted many communications between the Oberkommando der Wehrmacht (OKW, German High Com…

Why does Cryptanalysis of the Lorenz cipher matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Cryptanalysis of the Lorenz cipher?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Cryptanalysis of the Lorenz cipher.

Tags

  • Bletchley Park
  • History of computing in the United Kingdom
  • History of cryptography
  • Signals intelligence of World War II

Keep exploring