TdeaFileEncrypt(String, String, String, Mode, String) Method |
Encrypt a file passing key and IV as hex strings.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int FileEncrypt(
string fileOut,
string fileIn,
string keyHex,
Mode mode,
string ivHex
)
Public Shared Function FileEncrypt (
fileOut As String,
fileIn As String,
keyHex As String,
mode As Mode,
ivHex As String
) As Integer
Parameters
- fileOut String
- Name of output file to be created or overwritten
- fileIn String
- Name of input file
- keyHex String
- Hex-encoded key of exact length
- mode Mode
- Cipher Mode
- ivHex String
- Hex-encoded IV or "" for ECB mode
Return Value
Int320 if successful or non-zero
error code
RemarksfileOut and fileIn must not be the same.
The output file is in binary format.
See Also