EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
ASP and dotNET
Further Information



PGPDecryptString Method

Cryptocx v7 User Guide


PGPDecryptString Method

This is the method that you use to decrypt PGP encrypted data (cipher text). This method is complementary to the PGPEncryptString method.



Decrypts PGP encrypted data (the cipher text).


x = object.PGPDecryptString

The syntax of the PGPDecryptString 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 If for whatever reason the method fails to complete, the method will return some text stating exactly what has gone wrong. 

You need to specify the KeyFolder property of the control. This should be set to the directory that contains the keyring containing the key to use. Cryptocx automatically searches the specified folder for a valid key.

You must also specify the Password for the key that will decrypt the given PGP compatible encrypted text.

You should then specify the text to decrypt through the InputText property.



Example Sample Visual Basic Code to decrypt some PGP encrypted text:

Where Cryptocx1 is an instance of a Cryptocx Control.

Cryptocx1.KeyFolder = "C:\mykeys\"
Cryptocx1.Password = "mypassword"
Cryptocx1.InputText = txtTextToDecrypt.Text

txtDecryptedText.Text = Cryptocx1.PGPDecryptString





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