Replication the enigma machine