Get the latest tech news
Enigma Cipher Machine: An Object Oriented Python Implementation
Christopher Chmielewski's Home Page
This simplified implementation includes three rotors, a plugboard (for manually specifying letter substitutions), reflector and output. as physically building an Enigma machine would likely take months in a typical workshop with a good staff and budget. As for using the program, only lowercase letters are accepted as input, spaces can safely be entered but are ignored when generating the ciphertext.
Or read this on Hacker News