Changes

Jump to navigation Jump to search
706 bytes removed ,  04:30, 17 June 2012
no edit summary
This [[Module Library|XQuery Module]] contains cryptographic hash functions.
 
=Conventions=
 
All functions in this module are assigned to the {{Code|http://basex.org/modules/hash}} namespace, which is statically bound to the {{Code|hash}} prefix.<br/>
All errors are assigned to the {{Code|http://basex.org/errors}} namespace, which is statically bound to the {{Code|bxerr}} prefix.
 
=Functions=
|-
| '''Summary'''
|Computes the MD5 hash of the given {{Code|$value}}, which may be a of type xs:string or a binary item (xs:base64Binary, xs:hexBinary).
|-
| '''Errors'''
|-
| '''Summary'''
|Computes the SHA-1 hash of the given {{Code|$value}}, which may be a of type xs:string or a binary item (xs:base64Binary, xs:hexBinary).
|-
| '''Errors'''
|-
| '''Summary'''
|Computes the SHA-256 hash of the given {{Code|$value}}, which may be a of type xs:string or a binary item (xs:base64Binary, xs:hexBinary).
|-
| '''Errors'''
|-
| '''Summary'''
|Computes the hash of the given {{Code|$value}}, using the specified {{Code|$algorithm}}. The specified values may be a of type xs:string or a binary item (xs:base64Binary, xs:hexBinary).<br />The following three algorihms are supported: {{Code|MD5}}, {{Code|SHA-1}}, and {{Code|SHA-256}}.
|-
| '''Errors'''
* {{Code|hash:md5("", "")}} raises an error.
|}
 
=Errors=
 
{| class="wikitable" width="100%"
! width="5%"|Code
! width="95%"|Description
|-
|{{Code|HASH0001}}
|The specified hashing algorithm is unknown.
|}
 
=Changelog=
 
This module was introduced with Version 7.3.
 
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu