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
Extracts a list of the key ids from
the public keyring file.
x = object.PGPGetPublicKeys
The syntax of the PGPGetPublicKeys
method has these parts:
string that becomes a list of the key ids in the public
keyring file, separated by Chr(1).
Cryptocx v7 control.
If there are no keys in the specified
keyring an empty string will be returned.
All key ids will be separated by
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