EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
ASP and dotNET
Further Information



HashFileMD5 Method

Cryptocx v7 User Guide


HashFileMD5 Method

This is the method that you use to create an MD5 hash of a given file.

This is ideal for checking if a file has been modified at some point or for verifying files.


Creates an MD5 hash of a file


x = object.HashFileMD5

The syntax of the HashFileMD5 method has these parts:

Part Description
object A Cryptocx v7 control.
x A string that becomes the hash of the file specified.

Remarks MD5 is a 128 bit strength hashing algorithm.

The MD5 hash of the given file.

Example Sample Visual Basic Code to create an MD5-128 hash of a file:

Where Cryptocx is an instance of a Cryptocx Control.

'' Generate an MD5 Hash of a file

Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"
Cryptocx.SourceFile = "c:\somefile.txt"
txtMD5.Text = Cryptocx.HashFileMD5

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