The folks at Bletchley Park, where the enigma machine was broken, have come up with a clever simulator.
formatting link
"This applet simulates a WWII German Enigma encryption machine. You can use your computer keyboard to type, or use your mouse to click on the machine's keys. To alter the setup of the machine, click the 'Settings' button."
formatting link
is a detailed story of the history of several crypto machines.