Sign and Verify Messages with HMAC Using the Web Crypto API

from blog bradyjoslin.com, | ↗ original
Web Crypto is a cryptography API available in modern browsers and Cloudflare Workers that can be used to sign messages and verify message signatures using Hashed-Based Message Authentication Codes (HMAC). This post provides an example implementation of signing and verifying using Cloudflare Workers.