Forgebox
← All tools

Crypto

HMAC Generator

Create and optionally verify HMAC-SHA256 signatures locally.

Runs locally · no upload

HMAC-SHA256 via Web Crypto. Nothing is uploaded.

HMAC-SHA256

—

How to use this tool

HMAC combines a secret key with a hash function to authenticate messages. Local HMAC generation helps developers test webhook signatures and API request signing.

What this tool does

Generate an HMAC-SHA256 digest for a message and optional expected MAC comparison. Computation happens locally with Web Crypto.

When to use it

Use it while implementing webhook verification, signing test payloads, or teaching message authentication concepts.

Tips

Keep secrets out of screenshots and shared logs. Compare digests in a constant-time manner in production code.

Confirm encoding details (UTF-8 text vs raw bytes, hex vs base64 output) because mismatches cause false verification failures.

FAQ

Is HMAC encryption? No. It authenticates integrity and origin with a shared secret; it does not hide plaintext by itself.