EasyByte Software

Welcome to EasyByte Software

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

 

 

PGPDecryptVerifyString Method
 
     

Cryptocx v7 User Guide

 

PGPDecryptVerifyString Method

This is the method that you use to decrypt a PGP encrypted and signed string. This method is complementary to the PGPEncryptSignString method.

 

Description

Decrypts a PGP encrypted and signed string.

     
Syntax

x = object.PGPDecryptVerifyString

The syntax of the PGPDecryptVerifyString method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes either the decrypted and verified string or "Error: xxx" where xxx is the error message.

       
Remarks

This method requires the use of a secret key ring, you have to specify the directory in which the secret key ring resides though the KeyFolder property. Cryptocx will automatically search through the secret ring in the specified directory to find the required key.

You need to specify the Password of the secret key that is needed to decrypt the string.

You need to specify the string to decrypt and the verify the signature of, the InputText.

This method after decrypting the string will then verify the signature, if the signature cannot be verified, then it will not return "TRUE" even if the string can be decrypted fine. The signature is verified by

       
Returns

String

     
Example Sample Visual Basic Code to decrypt a PGP encrypted and signed string:

Where Cryptocx1 is an instance of a Cryptocx Control.

Dim theResult As String

Cryptocx1.KeyFolder = "C:\mykeys\"
Cryptocx1.Password = "mypass"
Cryptocx1.InputText = The String that is Encrypted and Signed
theResult = Cryptocx1.PGPDecryptVerifyString

MsgBox theResult

 

 

 

 

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