xdmp.hmacMd5( secretkey as Item, message as Item, [encoding as String] ) as String
Calculates the Hash-based Message Authentication Code (HMAC) using the md5 hash function of the given secret key and message arguments.
xdmp.hmacMd5("foo", "bar"); => "0c7a250281315ab863549f66cd8a3a53"
xdmp.hmacMd5("foo", "bar", "base64") => "DHolAoExWrhjVJ9mzYo6Uw=="
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.