Tdea.FileDecrypt Method (String, String, String, Mode, String)
Decrypt a file passing key and IV as hex strings.
Syntax
[C#]
public static int FileDecrypt(
string fileOut,
string fileIn,
string keyHex,
Mode mode,
string ivHex
)
[VB.NET]
Public Shared Function FileDecrypt ( _
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
- Type: Mode
Cipher Mode
- ivHex
- Hex-encoded IV or "" for ECB mode
Return Value
Remarks
fileOut and fileIn must not be the same. The output file is in binary format.
[Contents] [Index]