The Enigma machine is a cipher device developed and used in the early- to mid-20th century to protect commercial, diplomatic, and military communication. It was employed extensively by Nazi Germany during World War II, in all branches of the German military.
please visit wikipedia to describe what is enigma. https://en.wikipedia.org/wiki/Enigma_machine
this source code explained in persian. please check images in Img Folder.