CryptoSys PKI Pro Manual

Tdea.FileDecrypt(String, String, Byte[], Mode, Byte[]) Method

Decrypt a file.

Syntax

[C#]
public static int FileDecrypt(
   string fileOut,
   string fileIn,
   byte[] key,
   Mode mode,
   byte[] iv 
)
[VB]
Public Shared Function FileDecrypt (
   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 8 bytes (64 bits)
mode  Mode
Cipher Mode
iv  Byte
IV of exactly 8 bytes or null for ECB mode

Return Value

Int32
0 if successful or non-zero error code

Remarks

fileOut and fileIn must not be the same

See Also

VB6/C equivalent: TDEA_File

[Contents] [Index]

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

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