http://www.zorba-xquery.com/modules/cryptography/hmac ZC

Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace hmac = "http://www.zorba-xquery.com/modules/cryptography/hmac";

This module provides a function to generate hash-based message authentication codes (HMAC) involving a cryptographic hash function (e.g. SHA1).

Author:

William Candillon

XQuery version and encoding for this module:

xquery version "1.0" encoding "utf-8";

Module Resources
  • the XQuery module can be found here.
Namespaces
hmac http://www.zorba-xquery.com/modules/cryptography/hmac
ver http://www.zorba-xquery.com/options/versioning
Function Summary
sha1 ( $message as xs:string, $secret-key as xs:string ) as xs:string external
This function provides hash-based message authentication code using the SHA1 algorithm.
Functions
sha1 back to 'Function Summary'
declare function hmac:sha1 (
            $message as xs:string, 
            $secret-key as xs:string 
 ) as xs:string external

This function provides hash-based message authentication code using the SHA1 algorithm.

Parameters:
  • $message the message to be authenticated
  • $secret-key the secret key used for calculating the authentication
Returns:
  • hash-based base64 encoded message authentication code

blog comments powered by Disqus