Text = rsa.decrypt(base64.b64decode(base64Text.encode()), publicKey) # AttributeError: 'PublicKey' object has no attribute 'blinded_decrypt' Text = rsa.decrypt(base64.b64decode(base64Text.encode()), privateKey)Ĭipher = rsa.encrypt(b'Hello World!', privateKey)
I try to use code to describe my purpose import rsaĬipher = rsa.encrypt(b'Hello World!', publicKey)īase64Text = base64.b64encode(cipher).decode()