Function
hash
Computes the hash of text with a chosen algorithm: md5, sha1, sha224, sha256, sha384 or sha512. The result is hexadecimal.
Syntax
string hash(string algorithm, string dataToHash)Arguments
algorithmstring- The algorithm name.
dataToHashstring- The text.
Differences from MTA:SA
- These MTA:SA arguments are not here:
table options
In MTA:SA
hash(string algorithm, string dataToHash, table options)Returns
The hash or false.
Example
outputServerLog(hash("sha512", "trilogy"))