python number handling - tiny encryption algorithm

Paul Rubin http
Wed Nov 30 05:12:34 CET 2005


Kinsley Turner <kingsleyturner at westpac.com.au> writes:
> In my version, I end up with hugely long integers, which have obviously
> not be constrained into the 4-byte unsigned longs that TEA is expecting.

Yeah, Python promotes to long int now.  The simplest way to do the
32-bit arithmetic you need is probably with the array module.



More information about the Python-list mailing list