Click or drag to resize

CipherPad(String, CipherAlgorithm, Padding) Method

Pad hex-encoded string to correct length for ECB and CBC encryption.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static string Pad(
	string inputHex,
	CipherAlgorithm cipherAlg,
	Padding pad = Padding.Pkcs5
)

Parameters

inputHex  String
Hex-encoded data to be padded
cipherAlg  CipherAlgorithm
Block cipher being used
pad  Padding  (Optional)
Padding method to use (default is PKCS#5/#7)

Return Value

String
Padded data in hex-encoded string
See Also