This is a pure python implementation of the XXTEA encryption algorithm. It's an unconventional algorithm whose major properties are that it requires very little code to implement and that it can encrypt blocks of arbitrary size without the need for chaining modes.

The interface of the XXTEA class is deliberatily compatible to that of the Blowfish class. Unfortunately, XXTEA is a bit more than twice slower than Blowfish. The implementation has been tested to be compatible with the canonical C implementation.

You can download XXTEA for Python here.