campadrenalin/EJTP-lib-python — pull request #35 by cathalgarvey (2012-12-12 17:21:37+00:00)
Title: Made AES cipher object transient and pw hash a property.

I did this as the PyCrypto AES object doesn't appreciate being
used to encrypt and then decrypt; for whatever reason, it is a
stateful object and should be re-instantiated before each use.

Also, "hash" is a reserved word in python, so I changed it to
"pwhash", and made it an object property to work around having
the cipher as a throwaway object.

These changes are untested, as I had no time! Sorry, will test later.