Click or drag to resize

TdeaEncrypt(String, String, Mode, String, EncodingBase) Method

Encrypt encoded data string.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static string Encrypt(
	string inputStr,
	string keyStr,
	Mode mode,
	string ivStr,
	EncodingBase encodingBase
)

Parameters

inputStr  String
Encoded input data
keyStr  String
Encoded key representing exactly 24 bytes (192 bits)
mode  Mode
Cipher Mode
ivStr  String
Encoded IV representing exactly 8 bytes or "" for ECB mode
encodingBase  EncodingBase
Type of encoding used

Return Value

String
Ciphertext 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
See Also