encryptWithRSA
open fun encryptWithRSA(publicKey: PublicKey, data: String, cipherMode: Encryptor.CipherMode): String
Returns data encrypted with an RSA public key.
Return
Encrypted data.
Parameters
publicKey
RSA public key.
data
Data to be encrypted.
cipherMode
Cipher mode.