CryptoSys API Library Manual
 
Aes128.FileEncrypt Method (String, String, Byte[], Mode, Byte[])
 Encrypt a file 
Syntax
[C#]
public static int FileEncrypt(
	string fileOut,
	string fileIn,
	byte[] key,
	Mode mode,
	byte[] iv
)
[VB.NET]
Public Shared Function FileEncrypt ( _
	fileOut As String, _
	fileIn As String, _
	key As Byte(), _
	mode As Mode, _
	iv As Byte() _
) As Integer
Parameters
  - fileOut
 
  - Name of output file to be created or overwritten
 
  - fileIn
 
  - Name of input file
 
  - key
 
  - Key of exactly 16 bytes (128 bits)
 
  - mode
 
  - Type: Mode
Cipher Mode 
  - iv
 
  - IV of exactly 16 bytes or null/Nothing for ECB mode
 
Return Value
Zero (0) if successful; otherwise it returns a nonzero 
error code 
Remarks
fileOut and fileIn must not be the same
See Also
VB6/C equivalent: AES128_File
[Contents] [Index]