EasyByte Software

Welcome to EasyByte Software

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

 

 

SecretKey Property
 
     

Cryptocx v7 User Guide

 

SecretKey Property

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

 

Description

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

     
Syntax

object.SecretKey [= SecretKey ]

The syntax of the SecretKey property has these parts:

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

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

lQHgBD+NuJQBBADA2PJzNIzQZ+Cl3zdNyTbKo3oRpz/GKuk3GE1vhsEhs5PYh4P5
ewmJSpyetBQu410sAY/R/gkemcHex3nJZOvvDsZL7gQAre9R0eIMhdwI5pPj0FYK
WlDcoc/w3mpCRAiLBGocf69cbfNLdXn7fWXg1vJJs06Sp+S+21cMuYyA/QARAQAB
AU2bx38BJN4m88bZzuAb+vNFvc+okn6H1VzaXj7IDTFoxkTzlZyEPszRg2t256yH
q8vxhzPHre+gNx8nzWl+4qumYtQfUxkwBYULT/colPPOGLeCtdF7BB7voeI8zsAc
YpjM/W67SZMHjF3nBiaOlwgyZxbeuyiq9oMI7BN2m+T/WfS2pc1vbwe3mJL8hM0k
nwOu8fitXL3tKyNlfzicivIIrJI5TaAnaFgdHq5Gr5/zPRc24L4Asq1eaDqi0YfI
h4KTmqBzLGuFuGmAVUYKo7HK4zQlujnyiE9HO6PRkmVmJCH7vxIwjk/dZN0UNwcC
tU3H4IBrpuBmDSQHIF99Vm7X2MRUHL3Tb/UT2WoGH3u/sC0+9PxeEq6FUKOvzo9+
vWEvDxbNkdA9YP7u2hI6/fZy2yQKR2SkvjOr8K2jvEjWRvZZjnnEAur50DP2DIl2
2W/1tAVoZWxsbw==
=kX3f
-----END PGP PRIVATE KEY BLOCK-----

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

This property is ONLY used with the PGPDecryptString method.

     
Data Type

String

     
Example Sample Visual Basic Code to decrypt some PGP encrypted text:

Where Cryptocx1 is an instance of a Cryptocx Control.

Cryptocx1.Password = "mypassword"
Cryptocx1.InputText = txtTextToDecrypt.Text
Cryptocx1.SecretKey = txtSecretKey.Text


txtDecryptedText.Text = Cryptocx1.PGPDecryptString

 

 

 

 

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