CryptoSys PKI Toolkit Manual
Cipher.Decrypt Method (String, String, String, CipherAlgorithm, Mode)
Decrypt hex-encoded data string
Syntax
[C#]
public static string Decrypt(
string inputHex,
string keyHex,
string ivHex,
CipherAlgorithm cipherAlg,
Mode mode
)
[VB.NET]
Public Shared Function Decrypt ( _
inputHex As String, _
keyHex As String, _
ivHex As String, _
cipherAlg As CipherAlgorithm, _
mode As Mode _
) As String
Parameters
- inputHex
- Hex-encoded input data
- keyHex
- Hex-encoded key representing exact key length
- ivHex
- Hex-encoded IV representing exact block length or "" for ECB mode
- cipherAlg
- Type: CipherAlgorithm
Cipher Algorithm
- mode
- Type: Mode
Cipher Mode
Return Value
Decrypted plaintext in hex-encoded string or empty string on error
Remarks
For ECB and CBC modes, input data length must represent an exact multiple of the block length
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: CIPHER_Hex
[Contents] [Index]