CryptoSys API Library Manual
Des.Decrypt Method (String, String, Mode, String)
Decrypt hex-encoded data string
Syntax
[C#]
public static string Decrypt(
string inputHex,
string keyHex,
Mode mode,
string ivHex
)
[VB.NET]
Public Shared Function Decrypt ( _
inputHex As String, _
keyHex As String, _
mode As Mode, _
ivHex As String _
) As String
Parameters
- inputHex
- Hex-encoded input data
- keyHex
- Hex-encoded key representing exactly 8 bytes (64 bits)
- mode
- Type: Mode
Cipher Mode
- ivHex
- Hex-encoded IV representing exactly 8 bytes or "" for ECB mode
Return Value
Decrypted data in hex-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 (8 bytes)
See Also
VB6/C equivalent: DES_HexMode
[Contents] [Index]