Usually, you should use PyCrypto from the python-crypto
package. But if you want to code
in Python3, there's no fast hybrid((i.e. mostly C-code, partly Python-code)) implementation of such a library.
Using Google, you will most probably stumble on Bram Cohen's Rijndael implementation in
pure Python. I took his code and made it Python3 ready by replacing all xrange()
by range()
, all divisions (/
) by
integer-divisions (//
) and made the string.join()
working. There were no more changes neccessary.