Encryption with Python

Paul Rubin http
Mon Jun 28 03:37:08 EDT 2004


Till Plewe <till at score.is.tsukuba.ac.jp> writes:
> If you are happy xoring then there is an even faster method: use
> numarray. For me xoring a numarray.array is twice as fast as
> string.translate is on the corresponding string for UInt8 arrays and
> four times as fast for UInt64 arrays. (But adding the two conversions
> between strings and numarrays makes the two methods comparable).

If you can use numarray, there's a pretty good chance that you could
instead use pycrypt or pyaes or some other C extension that does real
encryption.  The idea of encrypting in pure python is you don't always
have the opportunity to use external modules like pycrypt or numarray.



More information about the Python-list mailing list