EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
Sections
Index
About
Installation
Properties
Methods
ASP and dotNET
Further Information
  

 

 

PGPDeleteSecretKey Method
 
     

Cryptocx v7 User Guide

 

PGPDeleteSecretKey Method

This is the method that you use to delete a specified secret key from a secret keyring file.

 

Description

Deletes a secret key.

     
Syntax

x = object.PGPDeleteSecretKey

The syntax of the PGPDeleteSecretKey method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes either "TRUE" or "Error: xxx" where xxx is the error message.

       
Remarks If for whatever reason the method fails to complete, the method will return some text stating exactly what has gone wrong, if the method runs ok then the output from the method will = "TRUE".

This method requires the use of a secret key ring, you have to specify the directory in which the secret key ring resides though the KeyFolder property. Cryptocx will automatically search through the secret keyring in the specified directory to find the required key.

You need to specify the ID of the key to delete, the KeyID.

       
Returns

String

     
Example 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

 

 

 

 

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