Try OpenEdge Now
skip to main content
ABL Reference
ABL Syntax Reference : MD5-DIGEST function
 

MD5-DIGEST function

Hashes the specified data using the RSA Message Digest Hash Algorithm (MD5), and returns a 16-byte binary message digest value as a RAW value.

Syntax

MD5-DIGEST( data-to-hash[ , hash-key] )
data-to-hash
The source data to hash. The data may be of type CHARACTER, LONGCHAR, RAW, or MEMPTR. If the data is a CHARACTER or LONGCHAR value, the AVM converts it to UTF-8 (which ensures a consistent value regardless of code page settings). To avoid this automatic conversion, specify a RAW or MEMPTR value.
hash-key
An optional key value to use in the hash operation. The key may be of type CHARACTER, LONGCHAR, RAW, or MEMPTR. If the key is a CHARACTER or LONGCHAR value, the AVM converts it to UTF-8 (which ensures a consistent value regardless of code page settings). To avoid this automatic conversion, specify a RAW or MEMPTR value. This key value is combined with the source data before the hash operation begins.
If the hash-key value contains a null character, the null character is included in the hash operation.

See also

MESSAGE-DIGEST function, SHA1-DIGEST function