XXTEA is a fast and secure encryption algorithm. This is a XXTEA extension for PHP. XXTEA, also known as Corrected Block TEA is a block cipher designed to correct weaknesses in the original Block TEA (Tiny Encryption Algorithm), which was first published together with a paper on 'Tea extensions'. Block TEA is likely to be more efficient than XXTEA for longer messages. It encrypts and decrypts string instead of uint32 array, and the key is also string.