Net Encryption Library
DecryptFile(String,String,X509Certificate2) Method






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class > DecryptFile Method : DecryptFile(String,String,X509Certificate2) Method
The full path of the file to decrypt
The full path to the output file
The PFX certificate that corresponds to the X509 certificate
Decrypt a file that was encrypted with a X509 certificate
Syntax
'Declaration
 
Public Overloads Sub DecryptFile( _
   ByVal inputFilePath As System.String, _
   ByVal outputFilePath As System.String, _
   ByVal cert As System.Security.Cryptography.X509Certificates.X509Certificate2 _
) 
'Usage
 
Dim instance As Encryption
Dim inputFilePath As System.String
Dim outputFilePath As System.String
Dim cert As System.Security.Cryptography.X509Certificates.X509Certificate2
 
instance.DecryptFile(inputFilePath, outputFilePath, cert)
public void DecryptFile( 
   System.string inputFilePath,
   System.string outputFilePath,
   System.Security.Cryptography.X509Certificates.X509Certificate2 cert
)
public procedure DecryptFile( 
    inputFilePath: System.String;
    outputFilePath: System.String;
    cert: System.Security.Cryptography.X509Certificates.X509Certificate2
); 
public function DecryptFile( 
   inputFilePath : System.String,
   outputFilePath : System.String,
   cert : System.Security.Cryptography.X509Certificates.X509Certificate2
);
public: void DecryptFile( 
   System.string* inputFilePath,
   System.string* outputFilePath,
   System.Security.Cryptography.X509Certificates.X509Certificate2* cert
) 
public:
void DecryptFile( 
   System.String^ inputFilePath,
   System.String^ outputFilePath,
   System.Security.Cryptography.X509Certificates.X509Certificate2^ cert
) 

Parameters

inputFilePath
The full path of the file to decrypt
outputFilePath
The full path to the output file
cert
The PFX certificate that corresponds to the X509 certificate
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Encryption Class
Encryption Members
Overload List