What was the Enigma machine used for?
The German Enigma was recovered by American Forces in TICOM (Target Intelligence Commitee [closely related with NSA]). In addition to capturing a few of the machines, they also captured some soldiers familiar with the machine. The soldiers told them the principles behind the machine, and American scientists, engineers, and agents were able to reverse engineer the machine to see how it worked.