encrypt CBC
open fun encryptCBC(key: Array<Byte>, data: Array<Byte>, iv: Array<Byte>, mode: AESPaddingMode): Array<Byte>
Encrypts a block of Data using AES in Cipher Block Chaining (CBC) mode.
Return
encrypted Data.
Parameters
key
encryption key Data, must be 16, 24, or 32 bytes long.
data
Data to encrypt.
iv
initialization vector.
mode
padding mode.