Changes

Jump to navigation Jump to search
598 bytes removed ,  20:47, 12 June 2012
no edit summary
* {{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 item(), $algorithm as basex:binary|xs:hexBinary}}<br />
|-
| '''Summary'''
|Computes the hash of the given binary item (xs:base64Binary, 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