AI engineering glossary · Web APIs HTTP

What is HMAC?

HMAC: A Hash-based Message Authentication Code is a short tag produced by mixing a message with a secret key using a hash function. Anyone holding the key can recompute it to verify origin and integrity. It is used for webhook signatures and signed requests.

Level: advancedTopic: Web APIs HTTP

HMAC: an example

hmac.new(secret, body, hashlib.sha256).hexdigest() yields the signature for a webhook body.

Related terms

More Web APIs HTTP terms

Where you learn it

HMAC is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.