BlowfishFileEncrypt(String, String, Byte, Mode, Byte, CipherFileOption) Method |
Encrypt a file with advanced options
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic static int FileEncrypt(
string fileOut,
string fileIn,
byte[] key,
Mode mode,
byte[] iv,
CipherFileOption advOptions
)
Public Shared Function FileEncrypt (
fileOut As String,
fileIn As String,
key As Byte(),
mode As Mode,
iv As Byte(),
advOptions As CipherFileOption
) As Integer
Parameters
- fileOut String
- Name of output file to be created or overwritten
- fileIn String
- Name of input file
- key Byte
- Key of length between 1 and 56 bytes (448 bits)
- mode Mode
- Cipher Mode
- iv Byte
- IV of exactly 8 bytes or null/Nothing for ECB mode
- advOptions CipherFileOption
- Advanced options. See CipherFileOption.
Return Value
Int32Zero (0) if successful; otherwise it returns a nonzero
error code
RemarksfileOut and fileIn must not be the same
See Also