Loona Automation logoLoona Developer Tools
Home › Hash Generators

HMAC-SHA256 Generator

In short: sign a message with a secret key using HMAC-SHA256 — the construction behind API request signing (AWS, webhooks) — computed locally with WebCrypto.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

About

HMAC turns a hash into a message authentication code: the key is mixed into the hashing in a specific two-pad construction (RFC 2104) that resists the length-extension attacks plain hash(key + message) suffers. HMAC-SHA256 is how webhooks prove they came from Stripe/GitHub, how AWS Signature Version 4 authenticates API calls, and how JWTs are signed with HS256. Verification means recomputing the MAC over the received message with the shared secret and comparing in constant time — if you are verifying in code, use a timing-safe comparison, never ==, and never this web page with a production secret you would not type into your own browser anyway.

Frequently Asked Questions

HMAC vs a plain SHA-256 of key + message?

Plain prefix hashing is vulnerable to length extension; HMAC's construction is provably secure as a MAC assuming the hash is a PRF — that is why protocols standardised it.

Is the output a signature?

It is a MAC: anyone with the key can produce it, so it proves authenticity between key-holders but not non-repudiation like a public-key signature.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.