On this page
article
hmac — Message Authentication
Keyed hashing for signatures.
Overview
Keyed hashing for signatures.
Quick Example
hmac.new(key, msg, hashlib.sha256)
When to Use
Use this module when you need built-in support without adding third-party dependencies.
Common Tasks
- Read the official docs: docs.python.org/3/library/hmac.html
- Combine with related modules in the Cookbook
- Prefer stdlib before reaching for PyPI packages