Sample Visual Basic
Code to delete a secret key from a secret keyring file.
Where Cryptocx is an instance of a Cryptocx Control.
''
'' Delete the public Key
''
Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7
Cryptocx.LicenseKey = "DEMO"
Cryptocx.KeyID = "somekey"
Cryptocx.KeyFolder = "c:\mykeyfolder"
'' Delete the Key
''
theResult = Cryptocx.PGPDeleteSecretKey
'' See if the key was deleted ok
''
If theResult = "TRUE" Then
'' Ok, the key was deleted
Else
MsgBox theResult
End If
|