EasyByte Software

Welcome to EasyByte Software

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

 

 

TripleDESStringEncrypt Method
 
     

Cryptocx v7 User Guide

 

TripleDESStringEncrypt Method

This is the method that you use to encrypt strings using the 168 bit 3DES encryption algorithm (3 * 56 Bit DES keys = 168 bit 3DES)

This method uses the standard 3DES encryption algorithm. It is complimentary to the TripleDESStringDecrypt method.

 

Description

Decrypts a string with encrypted with the 3DES algorithm.

     
Syntax

x = object.TripleDESStringEncrypt

The syntax of the TripleDESStringEncrypt method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes the encrypted string.

       
Remarks

You have to specify the 3  - DES keys to use, DESKey1, DESKey2 and DESKey3

       
Returns

The Encrypted String - base64 encoded for ease of use in storing, for example in databases fields.

     
Example Sample Visual Basic Code to 3DES encrypt a string.

Where Cryptocx1 is an instance of a Cryptocx Control.

''
'' 3DES Encrypt a String
''

Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"

Cryptocx.DESKey1 = Des3Key1.Text
Cryptocx.DESKey2 = Des3Key2.Text
Cryptocx.DESKey3 = Des3Key3.Text

Cryptocx.InputText = txt3DESPlain.Text

txt3DESEncrypted.Text = Cryptocx.TripleDESStringEncrypt


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