This is the method that you
use to get a list of all of the keys within a secret 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.
Description
Extracts a list of the key ids from
the secret keyring file.
Syntax
x = object.PGPGetSecretKeys
The syntax of the PGPGetSecretKeys
method has these parts:
Part
Description
x
A
string that becomes a list of the key ids in the secret
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)
Returns
String
Example
Sample Visual Basic
Code to get a list of the key ids in the secret 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.PGPGetSecretKeys