Click or drag to resize

Aes256FileEncrypt(String, String, String, Mode, String) Method

Encrypt a file passing key and IV as hex strings

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static int FileEncrypt(
	string fileOut,
	string fileIn,
	string keyHex,
	Mode mode,
	string ivHex
)

Parameters

fileOut  String
Name of output file to be created or overwritten
fileIn  String
Name of input file
keyHex  String
Hex-encoded key of exact length
mode  Mode
Cipher Mode
ivHex  String
Hex-encoded IV or "" for ECB mode

Return Value

Int32
Zero (0) if successful; otherwise it returns a nonzero error code
Remarks
fileOut and fileIn must not be the same. The output file is in binary format.
See Also