CryptoSys API Library Manual

Aes192.FileEncrypt Method (String, String, String, Mode, String)

Encrypt a file passing key and IV as hex strings

Syntax

[C#]
public static int FileEncrypt(
	string fileOut,
	string fileIn,
	string keyHex,
	Mode mode,
	string ivHex
)
[VB.NET]
Public Shared Function FileEncrypt ( _
	fileOut As String, _
	fileIn As String, _
	keyHex As String, _
	mode As Mode, _
	ivHex As String _
) As Integer

Parameters

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

Return Value

0 if successful or non-zero error code

Remarks

fileOut and fileIn must not be the same. The output file is in binary format.

[Contents] [Index]

[HOME]   [NEXT: Aes192.InitDecrypt Method (Byte, Mode, Byte)...]

Copyright © 2001-9 D.I. Management Services Pty Ltd. All rights reserved.