EasyByte Software

Welcome to EasyByte Software

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

 

 

HashStringMD5 Method
 
     

Cryptocx v7 User Guide

 

HashStringMD5 Method

This is the method that you use to create an MD5 of a string 

This is ideal for checking if a string get modified at some point or for verifying passwords. You can store an MD5 of a password and store that, then whenever there is a need to verify a password you just have to check the MD5 of the given password with what is stored.

 

Description

Creates an MD5 hash of a given string.

     
Syntax

x = object.HashStringMD5

The syntax of the HashStringMD5 method has these parts:

Part Description
object A Cryptocx v7 control.
x A string that becomes the hash of the input string specified.
       
Remarks This method uses a well published algorithm that has been used for many years. MD5 is a 128 bit hashing algorithm.
       
Returns

The MD5 hash of the input string

     
Example Sample Visual Basic Code to create an MD5 of a string:

Where Cryptocx1 is an instance of a Cryptocx Control.

 

Dim x as String

Cryptocx1.InputText = txtSource.Text
x= Cryptocx1.HashStringMD5

 

 

 

 

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