<b>[[XQuery Errors#Cryptographic Functions Errors|FOCX0021]]</b> is raised if the specified encryption algorithm is not supported.<br/>
|-
| valingvalign='top' | '''Example'''
|'''Decrypts input data and returns the original string.'''
'''Query:'''
<pre class="brush:xquery">
crypto:hmac('message','secretkey','md5','base64')
</pre>
'''Result:'''
<pre class="brush:xml">
34D1E3818B347252A75A4F6D747B21C2
</pre>
|}