decrypt To Bytes
open fun decryptToBytes(privateKey: PrivateKey, message: String): Array<Byte>
Content copied to clipboard
Decrypt a base 64 encrypted message with an RSA private key.
Return
The encrypted message bytes.
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.