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 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