| '''Summary'''
|Computes the MD5 hash of the given {{Code|$value}}, which may be of type xs:string, xs:base64Binary, or xs:hexBinary.
|-
| '''Errors'''
|{{Error|FORG0006|XQuery Errors#Function Errors}} the specified value is neither a string nor a binary item.
|-
| '''Examples'''
| '''Summary'''
|Computes the SHA-1 hash of the given {{Code|$value}}, which may be of type xs:string, xs:base64Binary, or xs:hexBinary.
|-
| '''Errors'''
|{{Error|FORG0006|XQuery Errors#Function Errors}} the specified value is neither a string nor a binary item.
|-
| '''Examples'''
| '''Summary'''
|Computes the SHA-256 hash of the given {{Code|$value}}, which may be of type xs:string, xs:base64Binary, or xs:hexBinary.
|-
| '''Errors'''
|{{Error|FORG0006|XQuery Errors#Function Errors}} the specified value is neither a string nor a binary item.
|-
| '''Examples'''
|-
| '''Errors'''
|{{Error|HASH0001|#Errors}} the specified hashing algorithm is unknown.<br/>{{Error|FORG0006|XQuery Errors#Function Errors}} the specified value is neither a string nor a binary item.
|-
| '''Examples'''