TEA - Tiny Encryption Algorithm
The TEA encrypts blocks of 64 bit data with a 128 bit key over several iterations. After only 6 iterations a change of one bit in the original block affects as much as 32 bits in the result. It has been found to be quite secure, especially this third version which has been improved to counter the vulnerabilities found in the first ones.
Feel free to use and learn from this code.