Tdea.Decrypt(String, String, Mode, String, EncodingBase) Method
Decrypt encoded data string.
Syntax
[C#]
public static string Decrypt(
string inputStr,
string keyStr,
Mode mode,
string ivStr,
EncodingBase encodingBase
)
[VB]
Public Shared Function Decrypt (
inputStr As String,
keyStr As String,
mode As Mode,
ivStr As String,
encodingBase As EncodingBase
) As String
Parameters
- inputStr String
- Encoded input data
- keyStr String
- Encoded key representing exactly 24 bytes (192 bits)
- mode Mode
- Cipher Mode
- ivStr String
- Encoded IV representing exactly 8 bytes or "" for ECB mode
- encodingBase EncodingBase
- Type of encoding used
Return Value
String
Decrypted data in encoded string or empty string on error
Remarks
For ECB and CBC modes, the length of the decoded input bytes must be an exact multiple of the block length
See Also
VB6/C equivalent: TDEA_B64Mode
[Contents] [Index]