encrypt
abstract fun encrypt(keyId: String, algorithm: SymmetricKeyEncryptionAlgorithm, data: ByteArray): ByteArray
Encrypts the given data using the specified key and encryption algorithm.
Return
ByteArray: encrypted data.
Parameters
key Id
ID of the encryption key to use.
algorithm
encryption algorithm to use.
data
data to encrypt.