Simulation of the Enigma cipher machine