<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.sha384.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.sha384</api:function-name><api:suggest>xdmp.sha384</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>sha384</api:suggest><api:function-link mode="xquery" fullname="xdmp:sha384">/apidoc/8.0/xdmp:sha384.xml</api:function-link><api:function mode="javascript" name="sha384" type="builtin" lib="xdmp" category="Extension" subcategory="Extension" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.sha384"><api:summary>
  Calculates the SHA384 hash of the given argument.
</api:summary><api:params><api:param name="data" type="item()"><api:param-description>
    Data to be hashed. Must be xs:string or a binary node.
  </api:param-description><api:param-name>data</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="encoding" type="xs:string" optional="true"><api:param-description>
    Encoding format for the output string, must be "hex" for hexadecimal
    or "base64". Default is "hex".
  </api:param-description><api:param-name>encoding</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>String</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  xdmp.sha384("foo");
  =&gt; "f7fbba6e0636f890e56fbbf3283e524c6fa3204ae298382d624741d0dc6638326e\
      282c41be5e4254d8820772c5518a2c5a8c0c7f7eda19594a7eb539453e1ed7"
 </pre></api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  xdmp.sha384("foo", "base64");
  =&gt; "9/u6bgY2+JDlb7vzKD5STG+jIErimDgtYkdB0NxmODJuKCxBvl5CVNiCB3LFUYos\
      WowMf37aGVlKfrU5RT4e1w=="
 </pre></api:example></api:function></api:function-page>