symmetricEncrypt

open fun symmetricEncrypt(input: Array<Byte>, key: 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

Throws

exception while encrypting