Changes

Jump to navigation Jump to search
1 byte added ,  13:00, 10 October 2011
m
no edit summary
<b>[[XQuery Errors#Cryptographic Functions Errors|FOCX0014]]</b> is raised if the specified encoding method is not supported.<br/>
<b>[[XQuery Errors#Cryptographic Functions Errors|FOCX0019]]</b> is raised if the specified secret key is invalid.<br/>
|-
| valign='top' | '''Example'''
|'''Returns the message authentication code (MAC) for a given string.'''
 
'''Query:'''
<pre class="brush:xquery">
crypto:hmac('message','secretkey','md5','base64')
</pre>
 
'''Result:'''
<pre class="brush:xml">
34D1E3818B347252A75A4F6D747B21C2
</pre>
|}
==Examples==
'''Example 1: Returns the message authentication code (MAC) for a given string.''' '''Query:'''<pre class="brush:xquery">crypto:hmac('message','secretkey','md5','base64')</pre> '''Result:'''<pre class="brush:xml">34D1E3818B347252A75A4F6D747B21C2</pre> '''Example 2: Encrypts and decrypts data.'''
'''Example 3: Generates and validates an [http://www.w3.org/TR/xmldsig-core/ XML Signature].'''
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu