EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
ASP and dotNET
Further Information



PGPGetPublicKeys Method

Cryptocx v7 User Guide


PGPGetPublicKeys Method

This is the method that you use to get a list of all of the keys within a public keyring file. This method returns the key ids from the file and not the actual keys. If you wish to extract a specific key you should use the ExtractKeys method.



Extracts a list of the key ids from the public keyring file.


x = object.PGPGetPublicKeys

The syntax of the PGPGetPublicKeys method has these parts:

Part Description
x A string that becomes a list of the key ids in the public keyring file, separated by Chr(1).
object A Cryptocx v7 control.

Remarks If there are no keys in the specified keyring an empty string will be returned.

All key ids will be separated by Chr(1)



Example Sample Visual Basic Code to get a list of the key ids in the public key ring.

Where Cryptocx1 is an instance of a Cryptocx Control.

Dim x As String

Cryptocx1.KeyFolder = "C:\mykeys\"

'' Get the keys.

txtKeys.Text = Cryptocx1.PGPGetPublicKeys





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