Hash.IsEqualMD5 |
Top Previous Next |
Checks to see if the supplied hash values are equal.
Syntax function Hash.IsEqualMD5(HashValue1, HashValue2: string): boolean
DescriptionCompares two hash values.
HashValue1, HashValue2 hold string representations of 2 hash values.
The Return Value is TRUE if the hash values are equal, FALSE otherwise.
See Also
Example execute UDSBlock returns (str_value varchar(100)) as begin /* creates 2 hashes */ hash1 = Hash.GetMD5('value 1'); hash2 = Hash.GetMD5('value 2'); /* compare hash values */ str_value = Hash.IsEqualMD5(hash1, hash2); suspend; /* returns False */
str_value = Hash.IsEqualMD5(hash1, hash1); suspend; /* returns True */
str_value = Hash.HasEqualMD5('value 1', 'value 1'); suspend; /* returns True */ end |