Virtual Bombe

Using Virtual Bombe

Making a menu from a crib, setting up and running the Bombe, checking stops, and finding the Enigma key.

Introduction

This tutorial explains how to use the Bombe simulator, and the checking machine simulator, for any Enigma-encrypted message (and crib; more on that later). It doesn’t go into detail on why the Bombe works or how it was built (see how it worked for that). The Bombe simulator aims to be as accurate as possible, but there may be differences from how a real Bombe worked. To see a fully working Bombe rebuild in action, we recommend a visit to The National Museum of Computing (TNMOC), which is on Bletchley Park but outside the main Bletchley Park museum. For more on Enigma and the story of how it was broken, we also highly recommend a visit to Bletchley Park itself.

A few words on Enigma and the Bombe

This tutorial assumes a basic knowledge of how the Enigma machine works, but here is a short overview to explain some of the terms used with the Bombe. To find out more, and use an Enigma machine for yourself, see our 3D web-based simulation, Virtual Enigma.

The Enigma machine works by making an electrical circuit from an input letter on a keyboard, through several scrambling stages, to a lamp showing the resulting scrambled letter. Each stage swaps the input letter for another letter, which is passed to the next stage. The stages are:

Virtual Enigma
Virtual Enigma.
  • The plugboard. The plugboard can swap up to ten pairs of letters, by connecting cables between them. For example, if a cable connects A and E, pressing A on the keyboard sends an E to the next stage.
  • The rotors. The most common Enigma machines have three rotor slots, with eight rotor models, each wired differently, to choose from. The rotors are labelled with Roman numerals, I to VIII. Each rotor has a ring with the alphabet, or numbers standing for the alphabet, printed on it. The rotor can be turned so a particular letter shows in a window on the Enigma: this is the rotor’s position. The ring can also be turned relative to the rotor: this is the ring setting. There’s more on this below.
  • The reflector. After the reflector, the signal passes back through the rotors and plugboard, in reverse order. Three reflector models were commonly used, labelled A, B and C.

To encrypt or decrypt a message, an Enigma operator had to set up several things on the machine. Together, these make up the key for the message:

  • which rotors are used, and in what order they go into the Enigma
  • the starting position of the rotors (for example, if it is HEJ, the leftmost rotor is turned to H, the middle to E and the rightmost to J)
  • the ring setting of the rotors, written the same way as the starting position: a letter for each rotor
  • the plugboard connections, written as 10 pairs of letters

For a three-rotor Enigma with eight rotors to choose from, using ten cables to connect twenty letters on the plugboard, the key space looks like this:

Ways to choose the rotors and their order336
Possible ring settings17,576
Possible rotor starting positions17,576
Ways to connect 10 plugboard cables150,738,274,937,250

Clearly, the plugboard makes by far the largest contribution to the key space.

The Bombe’s job is to help find the key used for a message, and in particular the plugboard settings. It can be thought of as several simplified Enigma machines connected so they can rule out many impossible plugboard settings, leaving the remaining, possibly correct, settings for the user to analyse further. The Bombe can search through all 17,576 rotor starting positions, but the rotor order and types have to be tested by hand.

Rotors and drums

The rotors of Virtual Enigma
Virtual Enigma.

For every key press on the Enigma, the rightmost rotor moves one step; when it reaches a certain position, it makes the middle rotor move one step. This is called a turnover. In the same way, the middle rotor makes the leftmost rotor move. A piece of metal on the rotor called a notch triggers the mechanism that moves the next rotor. Usually a rotor has only one notch, triggering one turnover per turn, but some rotors have two.

The ring setting on the Enigma rotors doesn’t change the actual scrambling done by a rotor: its internal wiring is always the same. The ring setting only changes the position at which the rotor scrambles one letter to another.

So a rotor with its ring set to A, in position A, is equivalent to the same rotor with its ring set to B in position B, except that the turnover position moves one step, as the notch is fixed. We will see later how turnover positions can affect the Bombe process.

The Bombe uses drums that scramble letters in the same way as the Enigma rotors, but they have no notch or ring setting. There is still a turnover, but it always happens at the Y position of the drums; on the Bombe this is called the carry. The drums are recognised by a distinctive colour, each matching one of the Enigma rotors, I to VIII. The drums are wired like their Enigma counterparts, but there are differences. Probably by mistake, drums I, II, III, VI, VII and VIII on the Bombe are one letter ahead of the matching Enigma rotors, drum IV is two steps ahead, and drum V three steps ahead.

Moving around Virtual Bombe

Virtual Bombe has two modes, use mode and view mode. The icon at the bottom left of the window shows which you are in: a pointing hand for use mode, where you use the mouse cursor to interact with the Bombe, and an eye for view mode, where you can look around the 3D world. In both modes you move around the same way: W and S move you forwards and backwards, and A and D left and right.

In use mode you can see the mouse cursor, and can click and drag the Bombe’s drums, switches and connectors. In view mode the cursor is hidden, and moving the mouse changes your point of view.

To leave view mode, click the left mouse button, which gives you the cursor back. To leave use mode, click anywhere outside the Bombe (anywhere the cursor is an arrow rather than a hand).

In view mode, move around the Bombe using both the keyboard and the mouse. See if you can get all the way round, looking at each of its four sides in turn.

Showing the Bombe in 3D takes quite a lot of processing power. If your computer isn’t quite up to it and movement is jerky and unresponsive, try making your browser window smaller.

Anatomy of the Bombe

The front of Virtual Bombe, with its three chains of drum banks
Virtual Bombe, front view.

The front of the Bombe has 36 drum banks, in three rows of 12. A drum bank is three drums, standing for the three rotors of an Enigma machine. The top drum corresponds to the Enigma’s slow, leftmost rotor and the bottom drum to its rightmost rotor. A drum bank isn’t a complete Enigma machine, just the rotor scrambler part, including the reflector.

The Bombe has three sets of control logic, called chains. The three chains let the operator run three different messages or set-ups at once, as long as each needs no more than 12 drum banks.

The back of Virtual Bombe
Virtual Bombe, rear view.

On the front there are also three indicator drums, used to read part of a possible solution when the Bombe stops, and start and stop buttons to control the motorised mechanics.

The Enigma reflector is a panel connector on one side of the Bombe. There are three panel connectors, one for each set of 12 drum banks.

On the back of the Bombe are many 26-pole jacks. Cables with 26 conductors (one for each letter of the alphabet) connect the jacks in different ways, depending on the analysis of the encrypted message, described below. Special jacks are used to inject a test current into the system and to display the result.

The other short side of the Bombe has a set of switches used to choose which lead of the 26-pole jack (which letter) the current is injected into. There are also switches controlling the drums’ stepping mechanism (the carry). Finally, there is a “letter box” display which, when the Bombe stops, shows which letter is the possible solution for the message set up on the Bombe. A lever to the left of the letter box restarts the Bombe after it has stopped automatically.

Making a menu from a crib

The first step in trying to recover the key used to encrypt a message is to draw a diagram called a menu. The menu shows whether the message is likely to be processed successfully on the Bombe, and also tells us how to connect the cables on the back of the Bombe for that message.

To create a menu, we need a piece of plain text matching part of the encrypted message. This is called a crib. The analysts at Bletchley Park knew that many messages contained stereotyped phrases, which made it possible to guess a crib. It also helped that an Enigma machine can’t encrypt a letter as itself, so it could often be seen straight away that a stereotyped phrase or word was not at a particular position in an encrypted message.

If they could find the key for a single message received during a day, they could read all the messages received that day, as the same key was used for all messages on a given Enigma network that day.

As an example of how to make a menu, we use this crib:

Letter number12345678910111213141516
CipherSNMKGGSTZZUGARLV
ClearWETTERVORHERSAGE

WETTERVORHERSAGE is the plain text, German for “weather forecast”.

We then draw a graph, adding links between each enciphered letter and its plain text counterpart. The aim is one connected graph with as many loops as possible. If a menu doesn’t have enough letters or loops, the Bombe will make many false stops, meaning a lot of work before we can find the correct key.

Virtual Bombe has a menu generator1 to help with this step. Click the menu generator icon (second in the row of icons at the top left of the screen) to open a new page, ready to create a menu. An example menu is loaded so we can see how it works. The cipher text in this example is QFZWRWIVTYRESXBFOGKUHQBAISEZ and the crib we want to fit is WETTERVORHERSAGEBISKAYA; you should see them both at the top of the screen.

Notice how the two letter Ss are shown in red. This is because Enigma can’t encipher a letter as itself, so this must be a wrong position for the crib. You can slide the crib along with the arrows to its left and right.

Click the right-pointing arrow to move the crib one step.

Now it’s an even worse fit, with clashes on the letters V, E and A. Move another step, which gives a clash on R: still not right. Keep moving the crib until there are no clashes between the two texts. That means this might be the place where the crib is in the cipher text.

The staff at Bletchley Park would then draw the menu from these links, drawing each linked pair of letters (for example R–W, the first) with a line between them. We can start to build this by typing in the right-hand text window.

On a new line, type R--W. This creates two nodes with a line between them.

There is a loop from this first letter in this example: a link from the W we just drew to the letter E. Let’s add that to the menu generator script.

On the next line, type W--E. After a brief pause, the generator adds a line to E. Complete the loop the same way: E--O, then O--S, and finally S--R, back to the original letter R.

If your node letters don’t join up, make sure you are typing them all in capitals. More options for the script, such as arrows or colours, are listed under the syntax help button at the top right of the screen.

You can carry on like this to join up all the letters linked between the cipher text and the crib or, for a faster option, click Auto Generate Menu to add all the linked letters for you. The graph tries to fit all the nodes and edges on the screen automatically, which may take a second or two to settle. If some edges overlap, drag the nodes around to get the clearest view, with as few crossing edges as possible.

An example menu graph drawn by the menu generator
Example menu.

Now let’s go back to our simpler example: the cipher text SNMKGGSTZZUGARLV and the crib WETTERVORHERSAGE.

Click Edit Cipher/Crib and enter these two texts. There are no clashes, so click Auto Generate Menu to draw the graph (you may need to drag a few nodes so they don’t cross).

The menu now consists of two separate graphs, which generally isn’t wanted. So we discard the letters O, T, M, W and K from the menu.

The example menu with the extra links removed
Example menu with the extra links removed.

Find and delete these lines in the script: T--O, M--T and K--T.

It is also convenient to have no more than 12 links in a menu: as mentioned earlier, three rotor configurations can be tested at once if the menu uses at most 12 drum banks. We remove the letter W to get down to 12 links. Removing W doesn’t break either of the two loops in the menu.

Find the line S--W and delete it.

Notice that G–R has two lines. This is because two links in the cipher and crib both have those letters. In the script, enter one as G--R and the other as R--G, and the menu generator knows to draw two separate lines.

The example menu with the rotor position marked against each link
Example menu with the start positions marked.

Next we add more information to the graph. We assume the Enigma rotors were set to ZZZ before the message was encoded, and that no middle-rotor turnover happened. The Bombe treats ZZZ as the “home” position.

In that case, the first letter of plain text would have been enciphered with the rotors at ZZA, the second at ZZB, and so on. Write the assumed Enigma rotor position against each link in the graph. This gives the final menu graph above.

To start turning the graph into something we can wire the Bombe up with, assign a drum bank to each link and write the drum bank number in a table with the assumed rotor position. Try to number the drum banks in a continuous sequence following the flow of the graph. This simplifies the wiring on the back of the Bombe, by letting us use special bridge connectors that join the output of one drum bank to the input of the next.

We will take this route through the graph to make the most of this: U → E → G → R → A → S → V → E → N, and H → Z → R → G → L.

Pick a central letter in the graph, one with lots of connections, as the “input”. This is where the test current is injected; here we pick G. Finally, we make another table mapping each letter in the graph to the connections used on it. For example, U is connected only to the input of drum bank 1, but E is connected to the output of 1 and input of 2, and to the output of 7 and input of 8. Where a letter connects the output of one bank to the input of the next, we write that connection in brackets, as a reminder that we can use a bridge connector for it.

The last step is to choose which letter to test. It should be a letter in the menu, but not the same as, or next to, the input letter. We choose A, and write “Current entry at A” on the menu.

This completes the menu, which should now look like this:

Drum bankPosition
1ZZK
2ZZE
3ZZF
4ZZN
5ZZM
6ZZG
7ZZP
8ZZB
9ZZJ
10ZZI
11ZZL
12ZZO
LetterConnections
U1 in
E(1 out, 2 in), (7 out, 8 in)
G(2 out, 3 in), (11 out, 12 in), input
R(3 out, 4 in), (10 out, 11 in)
A(4 out, 5 in)
S(5 out, 6 in)
V(6 out, 7 in)
N8 out
H9 in
Z(9 out, 10 in)
L12 out

Current entry at A.

This menu tests the hypothesis that A was connected to G on the Enigma’s plugboard. But thanks to the clever design of the Bombe, even if this hypothesis turns out to be false (which is likely), we still get the correct plugboard connections.

1. The menu generator uses JavaScript graph visualisation code from arborjs.org.

Setting up the menu on the Bombe

The front of Virtual Bombe, labelled: drum banks 1 and 2, the slow, middle and fast drums, and the Bombe drums on the table
Drum banks and the Bombe drums.

In short: watch the video on how to set up the Bombe.

First we choose which set of rotors to try, and in which order. As we use no more than 12 drum banks, we could try three rotor orders at once, but for now we will try just one: II, V, III, which happens to be the correct one.

In view mode, get into a position where you can see both the front of the Bombe and the drums on the table to the left (as above), then click to switch to use mode.

Seen from the front, drum bank 1 is the three rotors at the very top left; bank 2 is to the right of bank 1, and so on.

Drag the drum labelled “II Maroon” from the table onto the top left commutator. For a short while after you fit a drum, a Duplicate Row button appears at the top left of the screen: click it to copy that drum to every drum bank in the row. Do the same for the middle row with “V Brown”, and then the bottom (fast) row with “III Green”.

If you fit the wrong drum by mistake, drag it off the commutator and let go.

Next, set the drums to the letters given in the menu. Drum bank 1 should be set to ZZK. Each drum can be turned by clicking and dragging; keep the cursor inside the drum while you turn it (moving outside and letting go removes the drum).

On drum bank 1, leave the top and middle drums at Z and turn the bottom drum until the pointer is next to K. Repeat for the other 11 drum banks, setting each to the letters in the menu.

By default, the Bombe simulator uses the B reflector. Other Enigma reflectors were sometimes used; to change it, go round to the left side of the Bombe and click the reflector panel connector (the left one is for chain 1, through to the right one for chain 3). In our case, leave it on reflector board B.

The menu is wired up on the back of the Bombe. Each jack takes either a 26-way cable (one lead for each letter of the Enigma alphabet) or a special bridge connector. A bridge connector joins one jack to the one directly beneath it, and also has a jack of its own. Each chain has a set of three columns: a column of letters Z–A, known as the diagonal board; a column of jacks labelled CO1, CO2 and so on, which are commons (all the CO1 jacks are connected together, and the same for CO2 and so on); and a column with each of the drums from the front, labelled IN and OUT for each of the 12 drum banks.

First, fit the bridge connectors on the connections we wrote in brackets.

To bridge the output of drum bank 1 to the input of drum bank 2, click the jack labelled OUT1. (To remove a bridge connector, click it again.) Repeat for every bridge position in the menu.

Then connect the whole menu from top to bottom, starting at U. According to the menu, U connects to the input of drum bank 1.

Click the jack labelled U in the leftmost column; a cable appears, ready to connect. Move the other plug over the jack marked IN1 at the top of the third column and click to fit it.

To move a connector, click the second plug you placed (the one in IN1) and move it to another socket. To remove the cable entirely, click the first plug you placed (the one in the U socket). Hovering over either plug lights up the cable, which helps later, when more cables are connected, to trace what plugs into where.

The next letter in the menu, E, connects to two bridges, so we need one of the sets of common jacks.

Click the E jack: a cable appears between it and the nearest free jack. Move the cable so it stretches from E to any CO1 jack, then click to connect it. Then make a new cable from another CO1 jack to the jack on the bridge connector spanning OUT1 and IN2. Add a third cable from yet another CO1 jack to the jack on the bridge connector between banks 7 and 8.

This completes the E line of the menu.

Carry on like this for every letter in the menu. The current input, which we chose at G, is one of the jacks labelled CH, at the top of the second column from the right: use CH1 as the input for this menu.

Now go round to the right side of the Bombe. There is a section with many switches, a letter box display, and a lever next to the letter box. There are four columns of switches: one for each set of 12 drum banks (chains), and one auxiliary chain for more advanced menus. Each chain has an on/off switch, then a switch for each letter of the Enigma alphabet, to choose which of the 26 terminals (A–Z) the test current goes into. Below the A switches are three more switches. Carry Home runs the carry mechanism on all the drums until they reach their starting (home) position, a quick way to reset the Bombe. Double Input is used, sometimes with the auxiliary chain, for advanced menus, and isn’t covered here. Carry starts the normal carry mechanism, so the middle drums step on once for each full turn of the fast drums, and so on.

Switch on these three switches: Chain 1 at the top, switch A of chain 1, and Carry at the bottom. Finally, click the two power switches (above the letter box) so they are both on.

Running the Bombe

The menu is now set up and the Bombe is ready to start work. On the front of the Bombe, to the right of the three golden indicator drums, are two buttons: the left one starts the Bombe and the right one stops it.

Press the start button and watch the drums spin.

The Bombe is now searching part of the Enigma key space for a setting that satisfies the menu. It takes a little while to work through all the positions, and switches off automatically if it finds a valid “stop”. Watch the top drum make a full turn, checking each combination in turn, then a half-turn while the carry turns the drum below. This repeats with another full turn of the top drum and another half-turn for the carry, so the middle drums turn twice for every three turns of the top ones. Once the middle drum has made a full turn, it also turns the bottom drums, until either a stop is found or all 17,576 positions have been checked.

While you wait (and if your computer can cope with the extra graphics), walk round the back of the Bombe and click the Open/Close Bombe rear panel icon (third in the row at the top left of the screen) to see some of the inner workings moving as the Bombe does its job.

Dealing with Bombe stops

The golden indicator drums showing S N Y
The golden indicators showing SNY.

There will probably be more than one stop before the Bombe finishes searching this part of the key space (which was also useful for checking the Bombe was working properly). Only one of them will be the correct stop, matching what was used on the Enigma; the others are random, a result of mathematical probability. Each stop must be checked, using the checking machine.

The letter box display showing the letter D for chain 1
The letter box showing the letter D for chain 1.

When the Bombe stops the first time, the golden indicators show SNY and the letter box on the side of the Bombe shows D. We write this as SNY:D.

Write down the stop, then restart the Bombe: press the start button on the front (the left of the two buttons), then briefly lift the lever to the left of the letter box on the side.

While the Bombe carries on searching, the first stop can be tested on the checking machine.

The checking machine

The checking machine on the table, set up for the first check
The checking machine, set up for the first check.

The checking machine is the device on the left-hand side of the table. Like an Enigma, it has a keyboard, four drums, a reflector, and lamps to show a scrambled letter, but it has no plugboard and no mechanism to move the drums.

On the left is a cartridge that acts as the reflector; click it to change it to a different reflector. The B reflector was used for this message and is the default in the simulator, so we don’t need to change it. As our message comes from a three-rotor Enigma, a dummy drum, wired one-to-one, is used at the far left.

The dummy drum is yellow, with no letter markings, on top of the stand behind the machine. Drag it onto the commutator on the far left of the checking machine. Then drag the other three drums from the stand onto the right positions, so they match the Bombe: II, V, III (from left to right).

On a piece of paper, write the letters from the menu in a column: U, E, G, R, A, S, V, N, H, Z, L.

Next, set the rings on the drums to the letters given by the stop, here SNY.

To set a drum’s ring, drag the outer coloured edge of the drum to turn it. The ring setting is shown by a small black dot on the outer rim: set the dots by the S, N and Y respectively.

Hint: you may find this easier to see by crouching down and moving closer (press Shift).

The Bombe has suggested that on the Enigma plugboard, G is connected to D. Write D next to G.

On the menu graph, to move from G (our input letter) to E, we need to set the drums to ZZE.

Turn the drums on the checking machine to ZZE, then press the D key (the suggested plugboard partner of G, also called its stecker partner).

The lamp shows the possible stecker partner of E: in this case P lights up, so write P next to E. We can now use this new stecker partner of E to check the possible stecker partners of the letters connected to E in the menu, and so on.

Carry on following each link in the graph this way, noting each suggested stecker partner. The next might be from E to U: set the drums to ZZK and press P (the stecker partner of E), which should give W. If you arrive at a letter that already has a stecker partner, the result should be the same letter as before. If it isn’t, the result is a contradiction, so this stop is false and we go back to the Bombe for a new one. Remember that a letter can be its own stecker partner: this is the same as an unconnected letter on the Enigma’s plugboard, and is sometimes called a self-steckered letter.

The complete result for this stop should look like this:

Result for stop SNY:D
Menu letterStecker partner
UW
EP
GD
RP
AX
SQ
VI
NT
HT
ZX
LO

Here there are two contradictions: X can’t be connected to both Z and A, and P can’t be connected to both E and R. So this stop is false.

The next stop of the Bombe should be DKX:Q. Repeat the procedure on the checking machine, this time with the rings set to D, K, X, and with Q as the suggested stecker partner of our input letter G. Once every link in the graph has been tested, the result should be:

Result for stop DKX:Q
Menu letterStecker partner
UF
ET
GQ
RR
AD
SS
VN
NV
HM
ZP
LJ

This time there are no contradictions. Instead, reassuringly, V has N as its stecker partner and N has V. This stop, DKX:Q, passes the test and is worth investigating further, though even with no contradictions it may still not be the right solution.

Getting the Enigma message key

To investigate a possible key further, we use a simulation of a real Enigma machine.

In a new browser tab, go to Virtual Enigma and click Run Virtual Enigma. Make sure the Enigma model at the top right is set to Enigma Model I, then click the lid to open it.

Virtual Enigma uses the same keys and use/view modes to move around as Virtual Bombe.

First, set up the Enigma machine as we currently think it should be.

Click the grey knob to the left of the P lamp or right of the L lamp: this “unscrews” the lid and opens the Enigma. Click the gold-coloured lever to the left of the rotors to take them out.

The machine currently has rotors I, II and III, and we want II, V and III.

Drag rotor I onto rotor II and let go: they swap places. Click the spare rotor box to open it, then drag the middle rotor (now I) onto rotor V (the right-hand one in the box) to swap them. You should now have II, V, III from left to right.

Virtual Enigma with its rotors lifted out next to the box of spare rotors
Swapping the rotors in Virtual Enigma.

Next, set the ring settings to DKX.

To change a ring setting, drag a rotor until you find the small pin, currently next to the 01 position. Click the pin to release it, then drag the number tyre so 04 (the letter D) is next to the pin, and click the pin again to fix it. Set all three rings to D, K and X respectively (04, 11 and 24).

Click the gold-coloured lever to put the rotors back in the Enigma, and close the lid by clicking it. Set the rotor starting positions to ZZZ (26, 26, 26) by dragging up or down on each rotor, and drag the power switch (just to the right of the rotors) two positions to the left to switch the Enigma on.

Next, connect the plugboard settings we know.

Click the blue plugboard button just below and to the left of the Enigma, and open the front panel to see the plugboard. Connect the cables as found on the checking machine: U to F, E to T and so on. Leave the letters connected to themselves (R and S) unconnected, as an unconnected letter is self-connected. Then click the blue plugboard button again to get back to the top view.

Plugboard connections to make
Menu letterStecker partner
UF
ET
GQ
RR
AD
SS
VN
NV
HM
ZP
LJ

To allow for the errors on the Bombe drums mentioned earlier, and as we are using rotors II, V and III, we translate our assumed starting position ZZZ into YWY.

Set the starting positions of the rotors to 25, 23 and 25 (YWY).

Now let’s try to decrypt the message. With the starting position set to YWY, act as an Enigma operator receiving an encrypted message.

Type in the cipher text SNMKGGSTZZUGARLV.

The result is close to what we want, but not quite right: WETCERVXRHERSAGE. The C and the X are not the expected letters, most likely because we don’t know all the plugboard connections yet.

Let’s look at C first. We decrypted the letter K and got C instead of the expected T. We could get T by connecting a cable between C and T on the plugboard, but T already has a cable, connected to E. So instead, we look for the letter which, enciphered through the rotors alone at this letter’s rotor position (ZZD in Bombe rotors), would give E. As E is connected to T, this would give the output we want.

Go back to the checking machine and set the drums to ZZD. Press keys until you find the one that enciphers to E: it is I. On the Enigma plugboard, connect a cable between I and K.

Now the next problem: we got an X but wanted an O. Neither X nor O has a cable connected.

Connect the last cable between X and O. Reset the Enigma to YWY and decrypt the cipher text again.

We now get the expected result: WETTERVORHERSAGE.

All the letters in the crib now decipher correctly. Does that mean we have the correct key? Yes and no. We have all ten plugboard pairs, so that part of the puzzle is most likely solved (given that our two guesses proved correct). But the ring settings and rotor starting positions are probably not entirely right.

With more cipher text than just the crib (which would normally have been the case), at some point we would expect the deciphered text to switch from readable text to gibberish. If there is such a sudden switch, it is fair to assume that the leftmost and/or middle rotor has stepped where it shouldn’t have, either on our side or for the original cipher clerk but not for us. If we suspect a turnover has happened at the wrong place, we can adjust the ring and starting position one step at a time until we find the correct notch position. At worst this means 25 tries per rotor, so it isn’t too hard. Note that if a turnover happens in the middle of the crib, the process described here won’t work.

Summary

We have now seen how an encrypted Enigma message can be broken, given a crib. From the crib, a menu was made and used to set up the Bombe for the message. The Bombe’s stops were checked on the checking machine, and the promising stop was taken further on an Enigma machine to get a more complete key.

We cheated a little by knowing in advance which rotors and reflector were used, and in what order the rotors were fitted. In practice the same menu would have been set up on several Bombes; using its three chains, one Bombe could check three different rotor orders.

This had to be repeated every day, for every Enigma network of interest. It took a great deal of work to keep this up day after day, week after week. But the information gained at Bletchley Park was so valuable that it has been estimated to have shortened the war by at least two years, and probably by four.

Exercises

Wiring up the Bombe

Are you ready to wire up a Bombe using the test menu below? If you set it up correctly, there should be a single stop at B U O : L.

Test Menu I: wheels 3 2 4; a menu of the letters N, E and U linked by drum banks 1 to 7 at positions ZZS, ZZZ, ZAX, ZAS, ZAY, ZZW and ZAV; current entry at a; one stop only, B U O : L
Test Menu I, from the US 6812 Bombe Report, 1944.

Decrypt a message

Here is an Enigma-encrypted message you can try to break using the method described on this page:

QATCTQCNWMTVCOPYVFHOLCQTVGMTWOBRFOUBRMQBRIHLLXDBTZLXLGZUQFCWPXPOKOLFFADXDAVTJM

Crib: SECRETMESSAGE
Rotors: II I III