simulating the Enigma crypting machine