Enigma

Encipher/decipher with the WW2 Enigma machine.

Input: TextResult: Text

Text input

Run to see the result

More options
Remove non-alphabetic characters and group the output.

Examples

basic wiring

Input

G

Expected answer

P
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-most rotor ring setting
A
Left-most rotor initial value
A
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Left-hand rotor ring setting
A
Left-hand rotor initial value
A
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Middle rotor ring setting
A
Middle rotor initial value
A
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Right-hand rotor ring setting
A
Right-hand rotor initial value
Z
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Plugboard
(empty)
Strict output
Off
decryption

Input

GHLIM OJIUW DKLWM JGNJK DYJVD K

Expected answer

AAAAA AAAAA AAAAA AAAAA AAAAA A
Model
4-rotor
Left-most (4th) rotor
FSOKANUERHMBTIYCWLQPZXVGJD
Left-most rotor ring setting
A
Left-most rotor initial value
I
Left-hand rotor
NZJHGRCXMYSWBOUFAIVLPEKQDT<AN
Left-hand rotor ring setting
I
Left-hand rotor initial value
V
Middle rotor
ESOVPZJAYQUIRHXLNFTGKDCMWB<K
Middle rotor ring setting
O
Middle rotor initial value
O
Right-hand rotor
FKQHTLXOCBJSPDZRAMEWNIUYGV<AN
Right-hand rotor ring setting
U
Right-hand rotor initial value
Z
Reflector
AE BN CK DQ FU GY HW IJ LO MP RX SZ TV
Plugboard
WN MJ LX YB FP QD US IH CE GR
Strict output
Off
decryption 2

Input

LANOTCTOUARBBFPMHPHGCZXTDYGAHGUFXGEWKBLKGJWLQXXTGPJJAVTOCKZFSLPPQIHZFXOEBWIIEKFZLCLOAQJULJOYHSSMBBGWHZANVOIIPYRBRTDJQDJJOQKCXWDNBBTYVXLYTAPGVEATXSONPNYNQFUDBBHHVWEPYEYDOHNLXKZDNWRHDUWUJUMWWVIIWZXIVIUQDRHYMNCYEFUAPNHOTKHKGDNPSAKNUAGHJZSMJBMHVTREQEDGXHLZWIFUSKDQVELNMIMITHBHDBWVHDFYHJOQIHORTDJDBWXEMEAYXGYQXOHFDMYUXXNOJAZRSGHPLWMLRECWWUTLRTTVLBHYOORGLGOWUXNXHMHYFAACQEKTHSJW

Expected answer

KRKRALLEXXFOLGENDESISTSOFORTBEKANNTZUGEBENXXICHHABEFOLGELNBEBEFEHLERHALTENXXJANSTERLEDESBISHERIGXNREICHSMARSCHALLSJGOERINGJSETZTDERFUEHRERSIEYHVRRGRZSSADMIRALYALSSEINENNACHFOLGEREINXSCHRIFTLSCHEVOLLMACHTUNTERWEGSXABSOFORTSOLLENSIESAEMTLICHEMASSNAHMENVERFUEGENYDIESICHAUSDERGEGENWAERTIGENLAGEERGEBENXGEZXREICHSLEITEIKKTULPEKKJBORMANNJXXOBXDXMMMDURNHFKSTXKOMXADMXUUUBOOIEXKP
Model
4-rotor
Left-most (4th) rotor
LEYJVCNIXWPBQMDRTAKZGFUHOS
Left-most rotor ring setting
E
Left-most rotor initial value
C
Left-hand rotor
VZBRGITYUPSDNHLXAWMJQOFECK<A
Left-hand rotor ring setting
P
Left-hand rotor initial value
D
Middle rotor
JPGVOUMFYQBENHZRDKASXLICTW<AN
Middle rotor ring setting
E
Middle rotor initial value
S
Right-hand rotor
FKQHTLXOCBJSPDZRAMEWNIUYGV<AN
Right-hand rotor ring setting
L
Right-hand rotor initial value
Z
Reflector
AR BD CO EJ FN GT HK IV LM PW QZ SX UY
Plugboard
AE BF CM DQ HU JN LX PR SZ VW
Strict output
Off
double step anomaly

Input

AAAAA

Expected answer

EQIBM
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-most rotor ring setting
A
Left-most rotor initial value
A
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Left-hand rotor ring setting
A
Left-hand rotor initial value
A
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Middle rotor ring setting
A
Middle rotor initial value
D
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Right-hand rotor ring setting
A
Right-hand rotor initial value
U
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Plugboard
(empty)
Strict output
Off
double step anomaly 2

Input

AAAA

Expected answer

BRNC
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-most rotor ring setting
A
Left-most rotor initial value
A
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Left-hand rotor ring setting
A
Left-hand rotor initial value
A
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Middle rotor ring setting
A
Middle rotor initial value
E
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Right-hand rotor ring setting
A
Right-hand rotor initial value
U
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Plugboard
(empty)
Strict output
Off
double step anomaly 3

Input

AAAAA AAA

Expected answer

ZEEQI BMG
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-most rotor ring setting
A
Left-most rotor initial value
A
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Left-hand rotor ring setting
A
Left-hand rotor initial value
A
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Middle rotor ring setting
A
Middle rotor initial value
D
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Right-hand rotor ring setting
A
Right-hand rotor initial value
S
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Plugboard
(empty)
Strict output
Off
four rotor

Input

AAAAA AAAAA AAAAA AAAAA AAAAA A

Expected answer

GZXGX QUSUW JPWVI GVBTU DQZNZ J
Model
4-rotor
Left-most (4th) rotor
LEYJVCNIXWPBQMDRTAKZGFUHOS
Left-most rotor ring setting
A
Left-most rotor initial value
X
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Left-hand rotor ring setting
O
Left-hand rotor initial value
E
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Middle rotor ring setting
P
Middle rotor initial value
F
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Right-hand rotor ring setting
D
Right-hand rotor initial value
Q
Reflector
AE BN CK DQ FU GY HW IJ LO MP RX SZ TV
Plugboard
(empty)
Strict output
Off
four rotor 2

Input

AAAAA AAAAA AAAAA AAAAA AAAAA A

Expected answer

HZJLP IKWBZ XNCWF FIHWL EROOZ C
Model
4-rotor
Left-most (4th) rotor
FSOKANUERHMBTIYCWLQPZXVGJD
Left-most rotor ring setting
A
Left-most rotor initial value
L
Left-hand rotor
JPGVOUMFYQBENHZRDKASXLICTW<AN
Left-hand rotor ring setting
A
Left-hand rotor initial value
J
Middle rotor
VZBRGITYUPSDNHLXAWMJQOFECK<A
Middle rotor ring setting
M
Middle rotor initial value
G
Right-hand rotor
ESOVPZJAYQUIRHXLNFTGKDCMWB<K
Right-hand rotor ring setting
W
Right-hand rotor initial value
U
Reflector
AR BD CO EJ FN GT HK IV LM PW QZ SX UY
Plugboard
(empty)
Strict output
Off
non-alphabet drop

Input

Hello, world. This is a test.

Expected answer

ILBDA AMTAZ MORNZ DDIOT U
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-most rotor ring setting
A
Left-most rotor initial value
A
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Left-hand rotor ring setting
A
Left-hand rotor initial value
A
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Middle rotor ring setting
A
Middle rotor initial value
A
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Right-hand rotor ring setting
A
Right-hand rotor initial value
A
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Plugboard
(empty)
Strict output
On
non-alphabet passthrough

Input

Hello, world. This is a test.

Expected answer

ILBDA, AMTAZ. MORN ZD D IOTU.
Model
3-rotor
Left-most (4th) rotor
(empty)
Left-most rotor ring setting
A
Left-most rotor initial value
A
Left-hand rotor
EKMFLGDQVZNTOWYHXUSPAIBRCJ<R
Left-hand rotor ring setting
A
Left-hand rotor initial value
A
Middle rotor
AJDKSIRUXBLHWTMCQGZNPYFVOE<F
Middle rotor ring setting
A
Middle rotor initial value
A
Right-hand rotor
BDFHJLCPRTXVZNYEIWGAKMUSQO<W
Right-hand rotor ring setting
A
Right-hand rotor initial value
A
Reflector
AY BR CU DH EQ FS GL IP JX KN MO TZ VW
Plugboard
(empty)
Strict output
Off

Enigma was used by the German military, among others, around the WW2 era as a portable cipher machine to protect sensitive military, diplomatic and commercial communications. The standard set of German military rotors and reflectors are provided. To configure the plugboard, enter a string of connected pairs of letters, e.g. AB CD EF connects A to B, C to D, and E to F. This is also used to create your own reflectors. To create your own rotor, enter the letters that the rotor maps A to Z to, in order, optionally followed by < then a list of stepping points. This is deliberately fairly permissive with rotor placements etc compared to a real Enigma (on which, for example, a four-rotor Enigma uses only the thin reflectors and the beta or gamma rotor in the 4th slot). More detailed descriptions of the Enigma, Typex and Bombe operations can be found here.

Format reference: Enigma background and specification

Related tools

Browse encryption / encoding tools