MAC
A short tag computed from a message and a secret key, which lets the receiver check the message is unchanged and came from a key holder.
In more detail
MAC stands for message authentication code. Unlike a plain hash, which anyone can recompute after editing a message, a MAC needs the secret key, so outsiders cannot forge it. HMAC is the most common kind, and authenticated encryption produces a similar tag. Because sender and receiver share the key, a MAC gives integrity and authenticity between them but not non-repudiation. In networking the same letters also name a hardware address, which is unrelated.
Related terms
- HMAC — A way of combining a secret key with a hash function to produce a tag that shows a message came from someone holding the key and was not changed.
- keyed hash — A hash computed with a secret key mixed in, so only someone who holds the key can produce or check the correct value.
- digital signature — A value computed from data and a secret key that lets anyone with the matching verification key confirm the data came from the key holder and was not changed.
- AEAD — Authenticated encryption with associated data: encryption that keeps data secret and also detects any change to it or to an attached readable header.
Taught in
- CIA Triad, Non-Repudiation & Parkerian Hexad — Cybersecurity Fundamentals, GRC & Cryptography
- Regulatory Compliance: SOC 2, HIPAA, GDPR & PCI-DSS — Cybersecurity Fundamentals, GRC & Cryptography
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography
- Data States: Security at Rest, in Transit, and in Use — Cybersecurity Fundamentals, GRC & Cryptography