Click or drag to resize

Aes256Decrypt(String, String, Mode, String) Method

Decrypt hex-encoded data string

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static string Decrypt(
	string inputHex,
	string keyHex,
	Mode mode,
	string ivHex
)

Parameters

inputHex  String
Hex-encoded input data
keyHex  String
Hex-encoded key representing exactly 32 bytes (256 bits)
mode  Mode
Cipher Mode
ivHex  String
Hex-encoded IV representing exactly 16 bytes or "" for ECB mode

Return Value

String
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 (16 bytes)
See Also