A Message Authentication Code (MAC) is a cryptographic value used to verify the integrity and authenticity of a message using a shared secret. It matters because systems often need to detect tampering while confirming that only a holder of the shared secret could have created the valid check.
What is Message Authentication Code (MAC)?
A MAC is computed from the message and a secret key, then verified by a party that knows the same secret. It helps detect unauthorized modification and confirm the message came from someone with access to the expected key.
What Message Authentication Code (MAC) Commonly Supports
Common uses include API request integrity, secure token construction, protocol protections, and internal service message validation.
Message Authentication Code (MAC) vs. Digital Signature
A MAC uses a shared secret between parties. A digital signature uses asymmetric keys and allows broader public verification.
Frequently Asked Questions
Why use a MAC?
Because it provides efficient message integrity and origin assurance when both sides can share a secret securely.
Does a MAC provide confidentiality?
No. It protects integrity and authenticity, not secrecy of the message contents.
Related Cybersecurity Terms