Encrypt data in byte array
public static byte[] Encrypt( byte[] input, byte[] key, Mode mode, byte[] iv )
Public Shared Function Encrypt ( _ input As Byte(), _ key As Byte(), _ mode As Mode, _ iv As Byte() _ ) As Byte()
Ciphertext in byte array or empty array on error
For ECB and CBC modes, input data length must be an exact multiple of the block length (16 bytes)
See Example1
VB6/C equivalent: AES256_BytesMode