About this Enigma machine

Inspired by a visit to Bletchley Park, I've created a JavaScript implementation of the infamous Enigma machine used by Nazi Germany during the Second World War. It models the plugboard, three rotors (with turnover), reflector and lamp board providing the same encryption level as the 1939 naval-spec Enigma.

How to use this machine

To begin with, set the plugboard at the bottom of the machine. Then set the rotor positions using the three input fields. Finally, choose either lamp or message mode with the toggle switch to the right of the lamp board. When you're ready to start encryping your message, type your message into the input field.

The only way to retrieve the original message is to set the plugboard and rotors to the same starting positions as before and type in the encrypted message. Any other settings will leave the message indecipherable.

  1. q
  2. w
  3. e
  4. r
  5. t
  6. y
  7. u
  8. i
  9. o
  10. p
  11. a
  12. s
  13. d
  14. f
  15. g
  16. h
  17. j
  18. k
  19. l
  20. z
  21. x
  22. c
  23. v
  24. b
  25. n
  26. m
  1. q
  2. w
  3. e
  4. r
  5. t
  6. z
  7. u
  8. i
  9. o
  10. a
  11. s
  12. d
  13. f
  14. g
  15. h
  16. j
  17. k
  18. p
  19. y
  20. x
  21. c
  22. v
  23. b
  24. n
  25. m
  26. l