The arrow of time

Ivan Voras' blog

XXTEA for Python

In addition to the moderately well known implementation of Blowfish in pure Python I host, I've released a pure Python implementation of the XXTEA algorithm.

It can be downloaded here.

The XXTEA algorithm is a bit peculiar for two reasons: firstly, it's tiny when compared to others (see also the original TEA algorithm) and secondly, it has a sort-of inbuilt chaining mode enabling it to process arbitrarily sized blocks (though their size needs to be a multiple of 4 bytes) without explicit chaining mode like CBC etc.

This implementation is a bit more than 2x slower then the Python Blowfish implementation, though it could be made more speedy by introducing precomputed tables at critical points.

#1 Re: XXTEA for Python

Added on 2009-09-05T18:51 by G

Very nice.

Post your comment here!

Your name:
Comment title:
Text:
Type "xxx" here:

Comments are subject to moderation and will be deleted if deemed inappropriate. All content is © Ivan Voras. Comments are owned by their authors... who agree to basically surrender all rights by publishing them here :)