xdmp:hmac-sha1( $secretkey as item(), $message as item(), [$encoding as xs:string] ) as xs:string
Calculates the Hash-based Message Authentication Code (HMAC) using the SHA1 hash function of the given secret key and message arguments.
xdmp:hmac-sha1("foo", "bar") => "46b4ec586117154dacd49d664e5d63fdc88efb51"
xdmp:hmac-sha1("foo", "bar", "base64") => "RrTsWGEXFU2s1J1mTl1j/ciO+1E="
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.