EasyByte Software

Welcome to EasyByte Software

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

 

 

AESFileEncrypt Method
 
     

Cryptocx v7 User Guide

 

AESFileEncrypt Method

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

This method uses the standard AES encryption algorithm.

 

Description

Encrypts a file with 256 bit AES Algorithm.

     
Syntax

x = object.AESFileEncrypt

The syntax of the AESFileEncrypt 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 AES 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