EasyByte Software

Welcome to EasyByte Software

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

 

 

TripleDESGenerateKey Method
 
     

Cryptocx v7 User Guide

 

TripleDESGenerateKey Method

This is the method that you use to generate a 56 bit DES Key.

 

Description

Generates a DES key using a specified input as the starting point.

     
Syntax

x = object.TripleDESGenerateKey

The syntax of the TripleDESGenerateKey method has these parts:

 
Part Description
x A string that becomes the DES Key after the method has executed.
object A Cryptocx v7 control.

       
Remarks

You must specify the InputText property to use as the starting point for generating a new DES key.

Once generated the DES key is base64 encoded such that you can easily store it for example in database fields.

You need to run this method 3 times using different InputText properties as starting points to get the 3 keys to use with any of the 3DES methods of Cryptocx.

       
Returns

String

     
Example Sample Visual Basic Code to generate a DES Key:

 

''
'' Generate a DES Key
''

Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"

Cryptocx.InputText = "Some Starting text, blah...."
Des3Key1.Text = Cryptocx.TripleDESGenerateKey


'' Free up 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