Generates a Hash-based Message Authentication Code (HMAC) for a given source payload.
The data to hash
The secret key used for hashing
The hash algorithm to use (default: 'SHA-512')
Optional
Optional length to truncate the resulting hex string
A promise resolving to the HMAC hex string
Generates a Hash-based Message Authentication Code (HMAC) for a given source payload.