Click or drag to resize

CipherDecrypt(String, String, String, CipherAlgorithm, Mode) Method

Decrypt data block as hex-encoded string.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static string Decrypt(
	string inputHex,
	string keyHex,
	string ivHex,
	CipherAlgorithm cipherAlg,
	Mode mode
)

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