CryptoSys PKI Pro Manual

Tdea.FileDecrypt(String, String, String, Mode, String) Method

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]
Public Shared Function FileDecrypt (
   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

Int32
0 if successful or non-zero error code

Remarks

fileOut and fileIn must not be the same. The output file is in binary format.

[Contents] [Index]

[PREV: Tdea.FileDecrypt(String, String, Byte, Mode, Byte) Method...]   [Contents]   [Index]   
   [NEXT: Tdea.FileEncrypt(String, String, Byte, Mode, Byte) Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.