Error getting tags :
error 404Error getting tags :
error 404 md5Digest | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
md5Digest
Basics
Expander triangle
Type
Function
Syntax
the md5Digest of dataString md5Digest(dataString)
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns a 128-bitvalue based on a string.
Examples

md5Digest("ABC")
set the savedPrint of field 1 to the md5Digest of field 1
if the savedPrint of field 1 is not the md5Digest of field 1 then beep

Additional Comments
Expander triangle

Use the md5Digest function to create a fingerprint of the dataString which can be checked later to ensure that the string has not changed.

Parameters:

The dataString is any string, or an expression that evaluates to a string.

Value:

The md5Digest function returns a 128-bit value. (If you view this value as a string, it is 16 characters long.)

Comments:

The value returned for one dataString is mathematically unlikely to be identical to the value returned for an altered version of the dataString. Therefore, you can check the md5Digest of a string against a saved md5Digest to determine whether the string has changed since you saved the value.

For technical information about the MD-5 digest algorithm, see RFC 1321 at <http://www.ietf.org/rfc/rfc1321.txt>.

User Comments
Expander triangle
User thumbnail
shaosean@wehostmacs.com
StarStarStarStarStar
May 3, 2009
As originally posted to the Use-List by Dave Cragg


function hexDigest pvalue
local tRes
put md5Digest(pValue) into tMD5
get binaryDecode("H*",tMD5,tRes)
return tRes
end hexDigest


This will convert the 128-bit value that Rev returns to a format similiar to that returned by PHP and other languages.