Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

I know that there is a formula to calculate the result of any input but is the logic of how the machine actually worked documented?

I have seen schematics for the circuitry and even a how to make your own at home site. But has the logic been broken down? Is there source for a virtua Enigma Machine that works by replicating the logic of the machine instead of just using the math?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Is the logic for how the enigma machine worked documented somewhere?


If you're really interested in "diving in deeper" (pun intented), I would like to advise you to check out:

  • "The Cryptographic Mathematics of Enigma"
    Dr. A. Ray Miller
    NSA. Center for Cryptologic History. USA. 1996. 3rd edition 2002
  • "Funkpeilung als alliierte Waffe gegen Deutsche U-Boote 1939-1945."
    Arthur Bauer
    ISBN: 3-00-002142-6. The Netherlands, 1997. German. p. 33.
share|improve this answer
Thank you that is exactly what i was looking for –  Chad Jan 2 '14 at 17:07
re the pun: groan –  figlesquidge Jan 3 '14 at 16:23

Sorry to ask this, but did you try a web search via Google for "javascript enigma simulator"? The first hit (cryptomuseum.com) has many links to enigma simulation source code. For example, this one.

share|improve this answer
This does have some interesting emulations. But I guess I was looking for more of an elegant and easy to follow solution rather than javascript. But this is at least someplace to start. –  Chad Aug 4 '11 at 16:13
Perhaps this is what you want: Simulator "A recurring theme in my Inbox is people asking for the enigma wheel wiring so that they can write their own simulator. To save repetition, this web page contains the information you will need if you want to build yourself a simulator." –  Marsh Ray Aug 6 '11 at 7:28
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  e-sushi May 28 '14 at 7:38

A great page with everything Enigma is Frode Weierud's CryptoCellar:


The main topic headings from the page:

  • Enigma Publications
  • Historical Documents
  • Cryptanalytical Documents
  • The Enigma Series
  • Decoding Projects
  • Patents and Manuals
  • General Information
  • Enigma Messages and Keys
  • Enigma Papers and Thesis
  • Enigma Simulators
  • Replica Machines
  • Enigma Links
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.