How did the Enigma Machine work?

– [Jared] This is the Enigma machine. It looks like a typewriter but it has a very different purpose. During World War II it was used to keep messages secret…