User Tools

Site Tools


syntax:functions:hashhex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
syntax:functions:hashhex [2019/12/07 14:31] – created dmitrysyntax:functions:hashhex [2021/09/17 23:09] (current) craigt
Line 1: Line 1:
-=====HashHex(algorithm, value)=====+====== HashHex(algorithm, text) =====
 +Category:  Web function
  
-Calculates a hexadecimal hash of given value using one of the algorithms+\\  
-  * md5 +=====Description===== 
-  * sha1 +This function calculates the hexadecimal hash of given text value using one of the algorithms listed in the table, below.
-  * sha256 +
-  * sha384 +
-  * sha512+
  
-Example: +\\  
-Expression Result +=====Arguments===== 
-hashhex("md5", "Curiouser and curiouser!" 729528e852be58bfdbe25add1f48f487  |+^Argument^Type^Description
 +|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    | |
  
-**See also**+\\  
 +=====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=====
   * [[syntax:functions:hash|Hash(value)]]   * [[syntax:functions:hash|Hash(value)]]
 +  * [[syntax:functions:hmachex|HMACHex(algorithm, key, value)]]
 +
syntax/functions/hashhex.txt · Last modified: 2021/09/17 23:09 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki