generate HMAC hex digest of the payload