Simulation of the Enigma Machine