EasyByte Software

Welcome to EasyByte Software

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

 

 

AESStringEncrypt Method
 
     

Cryptocx v7 User Guide

 

AESStringEncrypt Method

This is the method that you use to encrypt text using 256 bit strength AES algorithm. This method is complementary to the AESStringDecrypt method.

The AES algorithm has been in the public domain for several years now, and has been well proven to be highly secure and fast. You can safely use this functionality within Cryptocx to encrypt and decrypt many megabytes of text at a time. AES was certified by the US Government as the encryption algorithm of choice.

 

Description

Encrypts text using 256 bit AES encryption algorithm

     
Syntax

x = object.AESStringEncrypt

The syntax of the AESStringEncrypt method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes the encrypted text after the method has run.

       
Remarks When the AESStringEncrypt method runs, after encryption has taken place the encrypted text is base64 encoded. This means that the encrypted text can be displayed in a text box.

If this was not done, then the encrypted text would not be able to be displayed in a text box as the non printable ASCII would be ignored.

The InputText property allows you to set the text to be encrypted.

You also need to specify the Password to use.

       
Returns

String

     
Example Sample Visual Basic Code to encrypt some text using the AES algorithm.

Where Cryptocx1 is an instance of a Cryptocx Control.


Cryptocx1.Password = txtPassword.Text
Cryptocx1.InputText = txtPlain.Text
txtBlowEnc.Text = Cryptocx1.AESStringEncrypt

 

 

 

 

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