symmetric Decrypt
Decrypts using AES/CBC/PKCS7 with an input byte array and key, using the random IV prepended using AES/ECB/None
Return
decrypted message
Parameters
input
array to decrypt
key
encryption key
Throws
deception while encrypting
open fun symmetricDecrypt(input: Array<Byte>, key: Array<Byte>, iv: Passable<Array<Byte>>): Array<Byte>
Decrypts using AES/CBC/PKCS7 with an input byte array and key, using the random IV prepended using AES/ECB/None
Return
decrypted message
Parameters
input
array to decrypt
key
encryption key
iv
the random IV
Throws
deception while encrypting