On the Subject of the Enigma CM

A machine that knows no bounds when it comes to ciphers.

Create an enigma machine by following the instructions below:

Enigma Machine Schematic

PLUGBOARD
TOP ROTOR
MIDDLE ROTOR
BOTTOM ROTOR
REFLECTOR
  • Set the top rotor to the rotor type shown on screen A.
  • Set the middle rotor to the rotor type shown on screen B.
  • Set the bottom rotor to the rotor type shown on screen C.
  • Set the reflector to the reflector type shown on screen D.
  • Shift the 2 rows of the bottom rotor until the bottom row’s left most letter is set to the 1st letter on screen 1.
  • Shift the 2 rows of the middle rotor until the bottom row’s left most letter is set to the 2nd letter on screen 1.
  • Shift the 2 rows of the top rotor until the bottom row’s left most letter is set to the 3rd letter on screen 1.
  • Set the plugboard equal to the alphabet.
  • For each letter on screens 2 and 3, swap the Nth letter on screen 2 with the Nth letter on screen 3 in the plugboard.

Rotor I

EKMFLGDQVZNTOWYHXUSPAIBRCJ
ABCdEFGHIJKLMNOPqRSTUVWXYZ

Rotor II

AJDKSIRUXBLHWTMCQGZNPYFVOE
ABCDeFGHIJKLMNOPQrSTUVWXYZ

Rotor III

BDFHJLCPRTXVZNYEIWGAKMUSQO
ABCDEFGHiJKLMNOPQRSTUvWXYZ

Rotor IV

ESOVPZJAYQUIRHXLNFTGKDCMWB
ABCDEFGHIjKLMNOPQRSTUVwXYZ

Rotor V

VZBRGITYUPSDNHLXAWMJQOFECK
ABCDEFGHIJKLmNOPQRSTUVWXYz

Rotor VI

JPGVOUMFYQBENHZRDKASXLICTW
ABCDEFGHIJKlMNOPQRSTUVWXyZ

Rotor VII

NZJHGRCXMYSWBOUFAIVLPEKQDT
ABCDEFGhIJKLMNOPQRSTuVWXYZ

Rotor VIII

FKQHTLXOCBJSPDZRAMEWNIUYGV
ABcDEFGHIJKLMNOpQRSTUVWXYZ

Reflector A

ABCDEFGHIJKLMNOPQRSTUVWXYZ
LUSNPQOMJIYAHDGEFXCVBTZRKW

Reflector B

ABCDEFGHIJKLMNOPQRSTUVWXYZ
XQUMFEPOWLTJDZHGBVYKCRIASN

Reflector C

ABCDEFGHIJKLMNOPQRSTUVWXYZ
ESKOAQMJYHCPGTDLFUBNRXZVIW

For each letter of the encrypted word, do the following:

  • Take the Nth letter of your encrypted word and find it on the plugboard row of the enigma machine.
  • Go straight down to the top row of the top rotor to receive a new letter.
  • Find the new letter in the bottom row of the top rotor.
  • Go straight down to the top row of the middle rotor to receive a new letter.
  • Find the new letter in the bottom row of the middle rotor.
  • Go straight down to the top row of the bottom rotor to receive a new letter.
  • Find the new letter in the bottom row of the bottom rotor.
  • Go straight down to the top row of the reflector to receive a new letter.
  • Go straight down again to the bottom row of the reflector to receive a new letter.
  • Find the new letter in the top row of the reflector.
  • Go straight up to the bottom row of the bottom rotor to receive a new letter.
  • Find the new letter in the top row of the bottom rotor.
  • Go straight up to the bottom row of the middle rotor to receive a new letter.
  • Find the new letter in the top row of the middle rotor.
  • Go straight up to the bottom row of the top rotor to receive a new letter.
  • Find the new letter in the top row of the top rotor.
  • Go straight up to the plugboard row to receive your Nth decrypted letter.
  • If the middle rotor’s bottom row’s left most letter is lowercased, shift all 3 rotors.
    Otherwise, if the top rotor’s bottom row’s left most letter is lowercased, shift the top and middle rotors.
    Otherwise, shift the top rotor.

NOTE: To shift a rotor, shift both rows of the rotor to the left one.

Example

Encrypted Word: JZWOU
Top Rotor: V
Middle Rotor: II
Bottom Rotor: IV
Reflector: A
Screen 1: LDM
Screens 2 & 3: BJL, CIE

ACBDLFGHJIKEMNOPQRSTUVWXYZ
NHLXAWMJQOFECKVZBRGITYUPSD
mNOPQRSTUVWXYzABCDEFGHIJKL
KSIRUXBLHWTMCQGZNPYFVOEAJD
DeFGHIJKLMNOPQrSTUVWXYZABC
IRHXLNFTGKDCMWBESOVPZJAYQU
LMNOPQRSTUVwXYZABCDEFGHIjK
LUSNPQOMJIYAHDGEFXCVBTZRKW
ABCDEFGHIJKLMNOPQRSTUVWXYZ

J->Q->U->O->N->D->Y->A->J->H

ACBDLFGHJIKEMNOPQRSTUVWXYZ
HLXAWMJQ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