pythonencryptionrsasignaturepkcs#1

(PY) Error Message : cannot import name 'pkcs1_15'


I'm studying about RSA encryption & decryption, so that I should import several packages related with it like the below, but one of them can't be imported.

from Crypto.Signature import pkcs1_15
from Crypto.PublicKey import RSA
from Crypto.Hash import SHA256 as SHA

It answered an error message like cannot import name 'pkcs1_15'.

How can I solve this problem?


Solution

  • Had the same problem faced. try this :

    pip3 install cryptodome