Click or drag to resize

CipherUnpad(String, CipherAlgorithm, Padding) Method

Remove padding from a hex-encoded encryption block.

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static string Unpad(
	string inputHex,
	CipherAlgorithm cipherAlg,
	Padding pad
)

Parameters

inputHex  String
hex-encoded padded data
cipherAlg  CipherAlgorithm
Block cipher being used
pad  Padding
Padding method to use

Return Value

String
Unpadded data in hex-encoded string.
Remarks
Unless pad is NoPad, the unpadded output is always shorter than the padded input. An error is indicated by returning the original data.
See Also