In
cryptography, a
message authentication code (
MAC) is a short piece of information used to
authenticate a message—in other words, to confirm that the message came from the stated sender (its authenticity) and has not been changed in transit (its
integrity).