This thread seems to have a life of it's own. I did complete the simple enigma in the AVR. It will run in pretty much any AVR. First part loads the rotor settings and sprays a text message into ram. Next part encrypts into ram below the plaintext Next part resets the rotors Finally, I decrypt into ram below the encrypted text. Making bigger rotors would be nice, but not really necessary. Each rotor costs you a byte per position, and AVR tables store 2 bytes/word so without the reverse lookup table, it's a kbyte per four rotors if you implemented a full byte-sized rotor. I didn't do anything about serial or other interface, it's just a nice little code module that runs with no hardware at all. -- Feel the power of the dark side! Atmel AVR -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist