TdeaFileEncrypt(String, String, Byte, Mode, Byte) Method |
Encrypt a file.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int FileEncrypt(
string fileOut,
string fileIn,
byte[] key,
Mode mode,
byte[] iv
)
Public Shared Function FileEncrypt (
fileOut As String,
fileIn As String,
key As Byte(),
mode As Mode,
iv As Byte()
) As Integer
Parameters
- fileOut String
- Name of output file to be created or overwritten
- fileIn String
- Name of input file
- key Byte
- Key of exactly 24 bytes (192 bits)
- mode Mode
- Cipher Mode
- iv Byte
- IV of exactly 8 bytes or null for ECB mode
Return Value
Int320 if successful or non-zero
error code
RemarksfileOut and fileIn must not be the same
See Also