Message Authentication Code
A Message Authentication Code (MAC) is a short piece of cryptographic information, sometimes called a tag, attached to a message to confirm that the message has not been altered and that it comes from a party holding the shared secret key. It helps detect both accidental changes and deliberate tampering. It is a security control concerned with integrity and authenticity, and is distinct from data governance concerns such as ownership or lineage.
A Message Authentication Code (MAC) is a cryptographic checksum computed over a message using a symmetric (shared secret) key, used to detect both accidental and intentional modifications of the data and to provide assurance of message origin authenticity. Because verification relies on possession of the same symmetric key by both the sender and verifier, a MAC generally does not provide non-repudiation in the way a digital signature (which uses asymmetric keys) does. This entry addresses the concept and purpose of a MAC only; it does not cover specific MAC constructions or algorithms, key management practices, or how a MAC would be evaluated as a technical or organizational measure under any particular data protection regime. Note that applying a MAC assures integrity and authenticity but does not conceal or transform the underlying data, so it does not by itself render personal data non-personal.
Why it matters
Integrity and authenticity are foundational to trustworthy data handling, and a Message Authentication Code is one of the mechanisms that lets a receiving party detect whether a message has been altered in transit or storage and whether it originated from a party holding the shared secret key. Without such assurance, an organization generally cannot distinguish legitimate data from data that has been accidentally corrupted or deliberately tampered with, which undermines the reliability of any downstream processing or decision-making that depends on that data.
For security and privacy professionals, a MAC is relevant as a technical control that supports the integrity dimension of information security, complementing rather than replacing confidentiality controls. It is important to understand its scope precisely: a MAC assures integrity and authenticity, but because verification depends on both parties holding the same symmetric key, it generally does not provide non-repudiation in the way a digital signature using asymmetric keys does. Anyone relying on a MAC to prove that a specific individual sent a message should recognize this limitation.
A common expert-level error is to treat integrity or authenticity controls as if they transform or conceal data. Applying a MAC does not encrypt, tokenize, or otherwise obscure the underlying message; the data remains readable and, where it consists of personal data, remains personal data. Practitioners should not describe a MAC as making data non-personal or as satisfying any particular data protection obligation on its own. Whether a MAC contributes to appropriate technical and organizational measures under any given regime depends on context and implementation, which this entry does not assess.
Who it's relevant to
Inside MAC
Common questions
Answers to the questions practitioners most commonly ask about MAC.