symmetric Encrypt With IV
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