Self.private_key = RSA. Key_cifrada = _key(passphrase=password, pkcs=8,protection='scryptAndAES128-CBC')ĭef load_PrivateKey(self, file, password): I try to implement RSA in Python with pycryptodome, the encrypt Works fine but the decrypt function no, my code is the following: from Crypto.PublicKey import RSAĭef save_PrivateKey(self, file, password): Python-RSA is a pure-Python RSA implementation.