Bombe

Search Enigma settings using known plaintext and a crib menu with a simulated Bombe machine.

Input: TextResult: Structured JSON

Text input

Run to see the result

More options

Examples

3 rotor (other stecker)

Input

JBYALIHDYNUAAVKBYM

Expected checks

Matches /<td>LGA<\/td> {2}<td>AG<\/td> {2}<td>QFIMUMAFKMQSKMYNGW<\/td>/
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
THISISATESTMESSAGE
Crib offset
0
Use checking machine
Off
3 rotor (self-stecker)

Input

BBYFLTHHYIJQAYBBYS

Expected checks

Matches /<td>LGA<\/td> {2}<td>SS<\/td> {2}<td>VFISUSGTKSTMPSUNAK<\/td>/
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
THISISATESTMESSAGE
Crib offset
0
Use checking machine
Off
checking machine

Input

BBYFLTHHYIJQAYBBYS

Expected checks

Matches /<td>LGA<\/td> {2}<td>TT AG BO CL EK FF HH II JJ SS YY<\/td> {2}<td>THISISATESTMESSAGE<\/td>/
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
THISISATESTM
Crib offset
0
Use checking machine
On
crib offset

Input

AAABBYFLTHHYIJQAYBBYS

Expected checks

Matches /<td>LGA<\/td> {2}<td>SS<\/td> {2}<td>VFISUSGTKSTMPSUNAK<\/td>/
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
THISISATESTMESSAGE
Crib offset
3
Use checking machine
Off
invalid crib

Input

JBYALIHDYNUAAVKBYM

Expected rejection

Message matches pattern
Invalid crib: .* in both ciphertext and crib
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
AAAAAAAA
Crib offset
0
Use checking machine
Off
long crib

Input

JBYALIHDYNUAAVKBYM

Expected rejection

Message matches pattern
Crib overruns supplied ciphertext
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
CCCCCCCCCCCCCCCCCCCCCC
Crib offset
0
Use checking machine
Off
multiple stops

Input

BBYFLTHHYIJQAYBBYS

Expected checks

Matches /<td>LGA<\/td> {2}<td>TT<\/td> {2}<td>VFISUSGTKSTMPSUNAK<\/td>/
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
THISISATESTM
Crib offset
0
Use checking machine
Off
negative offset

Input

AAAAA

Expected rejection

Message matches pattern
Offset cannot be negative
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
BBBBB
Crib offset
-1
Use checking machine
Off
no crib

Input

JBYALIHDYNUAAVKBYM

Expected rejection

Message matches pattern
Crib cannot be empty
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
(empty)
Crib offset
0
Use checking machine
Off
really long crib

Input

BBBBBBBBBBBBBBBBBBBBBBBBBB

Expected rejection

Message matches pattern
Crib is too long
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Crib
AAAAAAAAAAAAAAAAAAAAAAAAAA
Crib offset
0
Use checking machine
Off

To run this you need to have a 'crib', which is some known plaintext for a chunk of the target ciphertext, and know the rotors used. (See the 'Bombe (multiple runs)' operation if you don't know the rotors.) The machine will suggest possible configurations of the Enigma. Each suggestion has the rotor start positions (left to right) and known plugboard pairs. Choosing a crib: First, note that Enigma cannot encrypt a letter to itself, which allows you to rule out some positions for possible cribs. Secondly, the Bombe does not simulate the Enigma's middle rotor stepping. The longer your crib, the more likely a step happened within it, which will prevent the attack working. However, other than that, longer cribs are generally better. The attack produces a 'menu' which maps ciphertext letters to plaintext, and the goal is to produce 'loops': for example, with ciphertext ABC and crib CAB, we have the mappings A<->C, B<->A, and C<->B, which produces a loop A-B-C-A. The more loops, the better the crib. The operation will output this: if your menu has too few loops or is too short, a large number of incorrect outputs will usually be produced. Try a different crib. If the menu seems good but the right answer isn't produced, your crib may be wrong, or you may have overlapped the middle rotor stepping - try a different crib. Output is not sufficient to fully decrypt the data. You will have to recover the rest of the plugboard settings by inspection. And the ring position is not taken into account: this affects when the middle rotor steps. If your output is correct for a bit, and then goes wrong, adjust the ring and start position on the right-hand rotor together until the output improves. If necessary, repeat for the middle rotor. By default this operation runs the checking machine, a manual process to verify the quality of Bombe stops, on each stop, discarding stops which fail. If you want to see how many times the hardware actually stops for a given input, disable the checking machine. More detailed descriptions of the Enigma, Typex and Bombe operations can be found here.

Format reference: Bombe background and specification

Related tools

Browse encryption / encoding tools