Previous - crcFile Section Home - Hash Algorithm Next - Microsoft PowerPoint


crcString ( )

Derives a CRC32 value from an input string

Usage:

crcString (object me, string text )

Parameters:

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

Returns:

(string) - CRC32 character string

Example:

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

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

Notes:


Previous - crcFile Section Home - Hash Algorithm Next - Microsoft PowerPoint