encryptWithRSABytes

open fun encryptWithRSABytes(publicKey: PublicKey, data: String, cipherMode: Encryptor.CipherMode): Array<Byte>

Returns data encrypted with an RSA public key.

Return

Encrypted data.

Parameters

publicKey

RSA public key.

data

Data to be encrypted.

cipherMode

Cipher mode.