EasyByte Software

Welcome to EasyByte Software

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

 

 

AESFileDecrypt Method
 
     

Cryptocx v7 User Guide

 

AESFileDecrypt Method

This is the method that you use to decrypt files using the 256 bit AES encryption algorithm. 

This method uses the standard AES encryption algorithm.

 

Description

Decrypts a file with 256 bit AES algorithm.

     
Syntax

x = object.AESFileDecrypt

The syntax of the AESFileDecrypt 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".
       
Returns

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

     
Example Sample Visual Basic Code to encrypt file:

Where Cryptocx1 is an instance of a Cryptocx Control.

Dim theResult as String

Cryptocx1.SourceFile = txtSourceFile.Text
Cryptocx1.DestinationFile = txtDestinationFile.Text
Cryptocx1.Password = txtPassword.Text
theResult = Cryptocx1.AESFileEncrypt

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

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

 

 

 

 

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