Produce a SHA-1 hash digest from text using the SHA-1 algorithm in the browser.
Generate an HMAC-SHA1 hex digest from a message and secret key for legacy integrations.