Encrypt hex-encoded data string
public static string Encrypt( string inputHex, string keyHex, Mode mode, string ivHex )
Public Shared Function Encrypt ( _ inputHex As String, _ keyHex As String, _ mode As Mode, _ ivHex As String _ ) As String
Ciphertext in hex-encoded string or empty string on error
For ECB and CBC modes, the length of the decoded input bytes must be an exact multiple of the block length (8 bytes)
See Example1
VB6/C equivalent: TDEA_HexMode