Check out this brilliant Enigma emulator. It is a Flash application that emulates the Enigma encryption machine used by Germany during the Second World War.
You can change the rotors and plugs, input and output the plain and cipher text and even mail the results to a friend. Really cool!