AR-160AdvancedPremium

Enigma Cipher Machine: 3-Rotor Encryption (Arduino + KY-040 + I2C LCD)

Pick a letter with the KY-040 encoder and press: the encrypted letter appears on the I2C LCD and three rotors move one step, so the same letter turns into a different one on every press. Type the ciphertext again with the same key and the plain text returns: in the video, with key AAA, UNO became ZQN, and typing ZQN gave UNO again. Rotor tables, the double step, the reflector and a self test that runs 26 keys at power-up are in this project.

0.0(0)
Enigma Cipher Machine: 3-Rotor Encryption (Arduino + KY-040 + I2C LCD)
You build the working principle of one of the most famous cipher machines in history on your desk. You turn the knob to pick a letter, and when you press it a completely different letter shows up on the screen while the rotors move one step on. If a friend sets the same key and types the encrypted letters, your message comes back on the screen letter by letter. For anyone who does not know the key, the same text stays a meaningless row of letters.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions