Changes

Jump to navigation Jump to search
623 bytes added ,  20:27, 12 June 2012
|-
| '''Summary'''
|Computes the hash of the given string {{Code|$value}}, using the specified {{Code|$algorithm}}.<br />The following three algorihms are supported: {{@Code|MD5}}, {{@Code|SHA-1}}, and {{@Code|SHA-256}}.
|-
| '''Errors'''
|-
| '''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 xs:string, $algorithm as basex:binary|xs:hexBinary}}<br />|-| '''Summary'''|Computes the hash of the given binary item ({{Code|xs:base64Binary}}, {{Code|xs:hexBinary}}), using the specified {{Code|$algorithm}}.<br />The following three algorihms are supported: {{Code|MD5}}, {{Code|SHA-1}}, and {{Code|SHA-256}}.|-| '''Errors'''|{{Error|HASH0001|#Errors}} the specified hashing algorithm is unknown.|-| '''Examples'''|{{Code|util:md5(xs:hexBinary(''), 'MD5')}} returns {{Code|'D41D8CD98F00B204E9800998ECF8427E'}}.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu