Encrypt encoded data string
public static string Encrypt( string inputStr, string keyStr, Mode mode, string ivStr, EncodingBase encodingBase )
Public Shared Function Encrypt ( _ inputStr As String, _ keyStr As String, _ mode As Mode, _ ivStr As String, _ encodingBase As EncodingBase _ ) As String
Ciphertext in 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_B64Mode