The enigma machine was invented at the end of world war by an German engineer, named Arthur Scherbius.