EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
ASP and dotNET
Further Information



AESStringDecrypt Method

Cryptocx v7 User Guide


AESStringDecrypt Method

This is the method that you use to decrypt AES encrypted data in Strings (cipher text). This method is complementary to the AESStringEncrypt method.



Decrypts AES encrypted data (the cipher text).


x = object.AESStringDecrypt

The syntax of the AESStringDecrypt method has these parts:

Part Description
object A Cryptocx v7 control.
x A string that becomes the plain 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.

Using the code shown below it is possible to detect if an invalid password has been supplied to decrypt the text.

You need to specify the text to decrypt, this is done thought the use of the InputText property.

You also need to specify the Password to use.



If the password is wrong the function returns:

Error: Invalid password

Example Sample Visual Basic Code to decrypt some AES Encrypted text:

Where Cryptocx1 is an instance of a Cryptocx Control.

Dim x as string

Cryptocx1.Password = txtPassword.Text
Cryptocx1.InputText = txtPlain.Text
x = Cryptocx1.AESStringDecrypt





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