EasyByte Software

Welcome to EasyByte Software

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

 

 

PGPKeyInfo Method
 
     

Cryptocx v7 User Guide

 

PGPKeyInfo Method

This is the method that you use to get info about a specified key.

Description

Returns a KeyID, KeyType, KeySize, separated by Chr(1)

     
Syntax

x = object.PGPKeyInfo

The syntax of the PGPKeyInfo method has these parts:

 
Part Description
x A string that becomes a list of the keys properties, separated by Chr(1).
object A Cryptocx v7 control.

       
Remarks

If in invalid key is specify an error message will be returned instead in the format: "Error: " followed by the error that occurred.

You can specify the key to get info about as either the SecretKey or PublicKey properties of Cryptocx.

All the keys properties that are returned are separated by Chr(1) like so:

Key Id & Chr(1) & Key type & Chr(1) & Key Size

       
Returns

String

     
Example Sample Visual Basic Code to get info about a specified key.

Where Cryptocx1 is an instance of a Cryptocx Control.

''
'' Get Information about a given key
''

Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"
Cryptocx.PublicKey = txtKeyInfo.Text
Cryptocx.WorkingFolder = "C:\"

''
'' The info is returned in the form of a string like so:
''
''  Key Id & Chr(1) & Key type & Chr(1) & Key Size
''
''

MsgBox Cryptocx.PGPKeyInfo

'' Free memory resources
''

Set Cryptocx = Nothing

 

 

 

 

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