Table of Contents

HashHex(algorithm, text)

Category: Web function


Description

This function calculates the hexadecimal hash of a given text value using one of the algorithms listed in the table, below.


Arguments

ArgumentTypeDescription
algorithm Text The method to use to generate the hash from text. See the table below.
text Text The text string from which the hash value is generated.

Return value type: Text.


Algorithm Notes
md5
sha1
sha256
sha384
sha512


Remarks

Data types other than text are not converted into text automatically. All texts are assumed to have the UTF-8 encoding. The algorithm name is case-insensitive. The value is case-sensitive.


Examples

hashhex("md5", "Curiouser and curiouser!")  //Returns '729528e852be58bfdbe25add1f48f487'


See also