Changes

Jump to navigation Jump to search
626 bytes added ,  02:29, 14 June 2012
no edit summary
|-
| '''Summary'''
|Computes the hash of the given string, using the specified {{Code|$valuealgorithm}}.<br />The following algorithms are supported: {{Code|MD2}}, {{Code|MD5}}, {{Code|SHA-1}},{{Code|SHA-256}},{{Code|SHA-384}}, using and {{Code|SHA-512}}.|-| '''Errors'''|{{Error|HASH0001|#Errors}} the specified hashing algorithm is unknown.|-| '''Examples'''|* {{Code|util:md5("", "MD5")}} returns {{Code|D41D8CD98F00B204E9800998ECF8427E}}.* {{Code|util:md5("", "")}} raises an error.|} ==util:hash-binary=={||-| width='90' | '''Signatures'''|{{Func|util:hash-binary|$value as basex:binary, $algorithmas xs:string|xs:hexBinary}}. The specified values may be a string or a <br />|-| '''Summary'''|Computes the hash of the given binary item (xs:base64Binary, xs:hexBinary), using the specified {{Code|$algorithm}}.<br />The following three algorihms algorithms are supported: {{Code|MD2}}, {{Code|MD5}}, {{Code|SHA-1}},{{Code|SHA-256}},{{Code|SHA-384}}, and {{Code|SHA-256512}}.
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu