Click or drag to resize

Aes256Encrypt(String, String, Mode, String, EncodingBase) Method

Encrypt encoded data string

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.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 32 bytes (256 bits)
mode  Mode
Cipher Mode
ivStr  String
Encoded IV representing exactly 16 bytes or "" for ECB mode
encodingBase  EncodingBase
Type of encoding used

Return Value

String
Ciphertext in 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