Encrypt.rsa_decrypt

securefile.Encrypt.rsa_decrypt()

Decrypt a cipher text into plain text. ( rsa_encrypt )

Example:

...
enc.open()
enc.rsa_decrypt(rsa_public_key, commit=True)
enc.close()
Parameters:
  • key (RSA_KEY) – Encryption key.
  • commit=False (bool) – Save the change or not.
Returns:

Decrypted Message or Plain Text.

Raises:

TypeError - Text is not valid RSA string. Decode failed.

Note

Decryption of RSA cipher text may take more time then encryption