Tiny Encryption Algorithm

In cryptography, the Tiny Encryption Algorithm (TEA) is a block cipher notable for its simplicity of description and implementation, typically a few lines of code.

It has a Feistel structure with a suggested 64 rounds, typically implemented in pairs termed cycles.

Different multiples of a magic constant are used to prevent simple attacks based on the symmetry of the rounds.

This weakness led to a method for hacking Microsoft's Xbox game console, where the cipher was used as a hash function.

A third version (XXTEA), published in 1998, described further improvements for enhancing the security of the Block TEA algorithm.