| valign='top' | '''Summary'''
|Creates a message authentication code via a cryptographic hash function and a secret key. <br/>$encoding must either be <code>hex</code>, <code>base64</code> or the empty string (default is <code>base64</code>) and specifies the encoding of the returned authentication code.<br/>$algorithm describes the hash algorithm which is used for encryption. Currently supported are <code>md5</code>, <code>sha1</code>, <code>sha256</code>, <code>sha384</code>, <code>sha512</code>.
|-
| valign='top' | '''Errors'''
|<b>?</b>
|}
==crypto:encrypt==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>crypto:encrypt</b>($input as xs:string(), $encryption-type as xs:string(), $secret-key as xs:string(), $cryptographic-algorithm as xs:string()) as xs:string()</code>
|-
| valign='top' | '''Summary'''
|?
|-
| valign='top' | '''Errors'''
|<b>?</b>
|}
==crypto:decrypt==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>crypto:decrypt</b>($input as xs:string(), $decryption-type as xs:string(), $secret-key as xs:string(), $cryptographic-algorithm as xs:string()) as xs:string()</code>
|-
| valign='top' | '''Summary'''
|?
|-
| valign='top' | '''Errors'''
|<b>?</b>
|}