python number handling - tiny encryption algorithm

Paul Rubin http
Tue Nov 29 23:12:34 EST 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