EasyByte Software

Welcome to EasyByte Software

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

 

 

PublicKey Property
 
     

Cryptocx v7 User Guide

 

PublicKey Property

This is the property that you use to specify a public key. This has nothing to do with any key rings, this is the extracted public key to use, as a string.

 

Description

Specifies the public key for Cryptocx to use. This is a public key as a string.

     
Syntax

object.PublicKey [= PublicKey ]

The syntax of the PublicKey property has these parts:

 
Part Description
object A Cryptocx v7 control.
PublicKey A string expression that specifies the public key, a public looks like this:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Cryptocx v7

mQBWAzty0OIAAAECALKyznjZ2XL/boCAQvcNIf+mXV1YtkeX8R6dk2TUxEhVSgTF
flu0ZUkhpD7jA3XzK4vgZjMoJ+rH61FE0WxXdLkAUIAAAAAAAAAAAAO0A3h4eIkA
VQMFEDty0OPrUUTRbFd0uQEBp7wB/RggzmVG+2LPDbYq49DrlbL0UT0OfK4ZADzJ
g+3A1r2LvHc4EZYBSWAr7xguza3IE6Y92Mt6JuhHPNtyNjbPE80=
=67AI
-----END PGP PUBLIC KEY BLOCK-----

       
Default ""   (empty string)
       
Remarks You can get a public key out of a public key ring by using the key extraction functionality of Cryptocx.
     
Data Type

String

     
Example Sample Visual Basic Code to encrypt some text using the PGP compatible facility within Cryptocx.

Where Cryptocx1 is an instance of a Cryptocx Control.

Cryptocx1.WorkingFolder = "C:\"
Cryptocx1.InputText = rtfText2Encrypt.Text
Cryptocx1.PublicKey = txtPubKey.Text

rtfEncryptedText.Text = Cryptocx1.PGPEncryptString

 

 

 

 

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