decrypt To String
open fun decryptToString(privateKey: PrivateKey, message: String): String
Content copied to clipboard
Decrypt a base 64 encrypted message with an RSA private key.
Return
The encrypted message string.
Parameters
private Key
The private key which is used to decrypt the message.
message
The base 64 encrypted message to encrypt.
Throws
Unknown error.
If the key isn't long enough to encrypt this message.
If the algorithm can't be found on the system.
Unknown error.
If the key can't be used for this process.