CryptoSys PKI Pro Manual

Cipher.Decrypt(String, String, String, CipherAlgorithm, Mode) Method

Decrypt data block as hex-encoded string.

Syntax

[C#]
public static string Decrypt(
   string inputHex,
   string keyHex,
   string ivHex,
   CipherAlgorithm cipherAlg,
   Mode mode 
)
[VB]
Public Shared Function Decrypt (
   inputHex As String,
   keyHex As String,
   ivHex As String,
   cipherAlg As CipherAlgorithm,
   mode As Mode 
) As String

Parameters

inputHex  String
Hex-encoded input data
keyHex  String
Hex-encoded key representing exact key length
ivHex  String
Hex-encoded IV representing exact block length or "" for ECB mode
cipherAlg  CipherAlgorithm
Cipher Algorithm
mode  Mode
Cipher Mode

Return Value

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

See Also

VB6/C equivalent: CIPHER_Hex

[Contents] [Index]

[PREV: Cipher.Decrypt(Byte, Byte, Byte, CipherAlgorithm, Mode, Padding, Cipher.Opts) Method...]   [Contents]   [Index]   
   [NEXT: Cipher.Decrypt(String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts) Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.