GetHashForBlob (open)
Return the hash for a blob
Syntax
LOADLIB "wh::crypto.whlib";
STRING FUNCTION GetHashForBlob(BLOB data, STRING algorithm, STRING key_salt)
Parameters
BLOB data
Data to hash
STRING algorithm
Hashing algorithm ("MD5", "SHA-1", "SHA-256", "SHA-384", "SHA-512", "HMAC:MD5", "HMAC:SHA-1", "HMAC:SHA-256", "HMAC:SHA-384", "HMAC:SHA-512")
STRING key_salt
Optional key or salt for the specified algorithm
Return value
STRING
The hash, as binary data (you probably want to use EncodeBase16 on the result)