TdeaDecrypt(String, String, Mode, String) Method |
Decrypt hex-encoded data string.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static string Decrypt(
string inputHex,
string keyHex,
Mode mode,
string ivHex
)
Public Shared Function Decrypt (
inputHex As String,
keyHex As String,
mode As Mode,
ivHex As String
) As String
Parameters
- inputHex String
- Hex-encoded input data
- keyHex String
- Hex-encoded key representing exactly 24 bytes (192 bits)
- mode Mode
- Cipher Mode
- ivHex String
- Hex-encoded IV representing exactly 8 bytes or "" for ECB mode
Return Value
StringDecrypted data in hex-encoded string or empty string on error
RemarksFor ECB and CBC modes, the length of the decoded input bytes must be an exact multiple of the block length
See Also