Errors like Crypto.Util.randpool.KeyboardRandomPool not found may occur if you update your pycrypto to a newer version(Like 2.3). Due to this article, randpool.KeyboardRandomPool has been marked deprecated in previous version. We should use Crypto.Random instead.
Just change things like:
Crypto.Util.randpool.KeyboardRandomPool().get_bytes(1)
to:
Crypto.Random.get_random_bytes(1)
Just change things like:
Crypto.Util.randpool.KeyboardRandomPool().get_bytes(1)
to:
Crypto.Random.get_random_bytes(1)
Comments