What was the name of the machine that Germany used to encrypt messages in WWII?

History Trivia: What was the name of the machine that Germany used to encrypt messages in WWII?