# HASH (Version 5.7.3)

result = HASH( hash_type, data [ , result_type [, length ]] )

Where:

hash_type is one of the available hash methods:

"whirlpool"

"sha512"

"sha384"

"sha256"

"sha224"

"sah1"

"ripemd320"

"ripemd256"

"ripemd160"

"ripemd128"

"tiger"

"md5"

"md4"

"md2"

Case is not significant in the name.

Data is the actual data to hash

Result_type specified how the hash should be returned.

0 - (default) Return the hash as-is

1 - Return the hash in hex

2 - Return the hash in BASE64 encoding

Length is the length of the input data. The default is to use the

entire length of 'data'

Example:

hash("sha1","Hello","1") returns

"F7FF9E8B7BB2E09B70935A5D785E0CC5D9D0ABF0"

hash("sha1","Hello","2") returns

"9/+ei3uy4Jtwk1pdeF4MxdnQq/A="

New "hash-based message authentication code" (HMAC) hash function added to Version 5.7.04:

result = HMAC_HASH(method, data, key [,method2[,length]] )

where "method", "data", "method2", and "length" correspond to the same parameters in HASH(), and "key" is the HMAC key.