CryptoSys API Library Manual

Blowfish.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
mode
Type: Mode
Cipher Mode
ivHex
Hex-encoded IV or "" 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. The output file is in binary format.

See Also

VB6/C equivalent: BLF_FileHex

[Contents] [Index]

[PREV: Blowfish.FileEncrypt Method (String, String, Byte, Mode, Byte, CipherFileOption)...]   [Contents]   [Index]   
   [NEXT: Blowfish.InitDecrypt Method (Byte, Mode, Byte)...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.