EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
ASP and dotNET
Further Information



PGPExtractKeys Method

Cryptocx v7 User Guide


PGPExtractKeys Method

This is the method that you use to extract PGP based keys from keyrings. 

This method does not care what bit size the key(s) that you want to extract are.



Extracts a specified key from the keyrings


x = object.PGPExtractKeys

The syntax of the PGPExtractKeys method has these parts:

Part Description
object A Cryptocx v7 control.
x A string that becomes the keys after the method has run. If the specified key(s) are not in the keyrings then the method will return an empty string.

Remarks If for whatever reason the method fails to complete, the method will return some text stating exactly what has gone wrong.

You have to specify what key to extract from a public key ring, this is done by specifying the KeyId property of the Cryptocx control. As all keys in a public keyring are identified by their id.

You need to specify the KeyFolder where the public keyring is located. Cryptocx will automatically search through the specified folder to find any valid keyrings.



Example Sample Visual Basic Code to extract a key from a key ring.

Where Cryptocx1 is an instance of a Cryptocx Control.

Dim x As String

Cryptocx1.KeyFolder = "C:\mykeys\"
Cryptocx1.KeyID = "mykey"

'' Do the key extraction.

x = Cryptocx1.PGPExtractKeys





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