Previous - md5File Section Home - Hash Algorithm Next - crcFile


md5String ( )

Derives a MD5 character string from a input string

Usage:

md5String (object me, string text )

Parameters:

text (string) - the text that will be hashed into a MD5 value

Returns:

(string) - MD5 character string

Example:

-- generates a unique 32 digit MD5 value based on computer name and hard drive serial number
xtRose = xtra("Rosetta").new( )
strCompName = xtRose.sysComputerName( )
strHardDiskSerial = xtRose.sysDriveInfo( "C", 2 )

-- create MD5 String based on unique system information
strUserKey = xtRose.md5String( strSerial & "add some random salt to  prevent dictionary lookup" )

Notes:


Previous - md5File Section Home - Hash Algorithm Next - crcFile