EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
Sections
Index
About
Installation
Properties
Methods
ASP and dotNET
Further Information
  

 

 

TripleDESFileDecrypt Method
 
     

Cryptocx v7 User Guide

 

TripleDESFileDecrypt Method

This is the method that you use to decrypt files using the 168 bit 3DES encryption algorithm (3 * 56 Bit DES keys = 168 bit 3DES)

This method uses the standard 3DES encryption algorithm.

 

Description

Decrypts a file with 3DES algorithm.

     
Syntax

x = object.TripleDESFileDecrypt

The syntax of the TripleDESFileDecrypt method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes either "TRUE" or "Error: xxx" where xxx is the error message.

       
Remarks If for whatever reason the method fails to complete, the method will return some text stating exactly what has gone wrong, if the method runs ok then the output from the method will = "TRUE".

You have to specify the 3  - DES keys to use, DESKey1, DESKey2 and DESKey3

       
Returns

"TRUE" or a string stating what went wrong beginning with "Error:"

     
Example Sample Visual Basic Code to 3DES decrypt a file:

Where Cryptocx1 is an instance of a Cryptocx Control.

''
'' 3DES Decrypt a File
''

Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"

Cryptocx.DESKey1 = Des3Key1.Text
Cryptocx.DESKey2 = Des3Key2.Text
Cryptocx.DESKey3 = Des3Key3.Text

Cryptocx.SourceFile = txt3DESSourceFile.Text
Cryptocx.DestinationFile = txt3DESDestinationFile.Text

theResult = Cryptocx.TripleDESFileDecrypt


'' Check to see what has happened (if the decryption went ok without errors)
''

If theResult = "TRUE" Then
  '' Ok, the Decryption went well with no errors
Else
  MsgBox theResult
End If


'' Free up Memory Resources
''

Set Cryptocx = Nothing

 

 

 

 

Back to Contents Page

 

Click here to set this great site as your home page

Or click here to add it to your Favorites.

  
  
 

Copyright (c) EasyByte Software 1998-2008, info@easybyte.com