symmetricEncryptWithIV

open fun symmetricEncryptWithIV(input: Array<Byte>, key: Array<Byte>, iv: Array<Byte>): Array<Byte>

Performs an encryption using AES/CBC/PKCS7 with an input byte array and key, with a random IV prepended using AES/ECB/None

Return

encrypted message

Parameters

input

array to encrypt

key

encryption key

iv

the random IV

Throws

exception while encrypting