+1 coinfor reading to the end
+1
Home / Glossary / MAC
Glossary Β· Security

MAC

Message Authentication Code

A short code attached to a message that proves it came from the right sender and was not changed on the way.

Like a wax seal pressed with a stamp only the sender owns: if the seal is missing or cracked, the letter is not trusted.

How it works

  • The sender and receiver share a secret key.
  • The sender runs the message and the key through a formula and attaches the result.
  • The receiver repeats the calculation and compares; any change to the message breaks the match.
  • It works quietly inside HTTPS, Wi-Fi and software updates.

What can go wrong (example scenario)

A small firm's payment tool sent instructions to a bank. Someone altered the account number in transit, the code no longer matched, and the bank refused the altered copy.

  • A software update checks its code before installing.
  • A Wi-Fi connection rejects a frame that was altered in the air.
  • A bank API call includes a code so the bank can tell it came from the real app.

A question owners ask

Is this the same as a digital signature?

They are cousins. A message authentication code uses a shared secret, so both sides can create it. A digital signature uses a private key that only one side holds.

Something here sounds like your problem?

Every WILDCARD card exists to solve one named problem. Find yours.

Pick your problem β†’