GetHashForString (open)
Return the hash for a string
Syntax
LOADLIB "wh::crypto.whlib";
STRING FUNCTION GetHashForString(STRING text, STRING algorithm, STRING key_salt)
Parameters
STRING text
Text to hash
STRING algorithm
Hashing algorithm ("MD5", "SHA-1", "SHA-256", "SHA-384", "SHA-512", "CRC32", "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)