concept MAC in category cryptography
appears as:
A MAC, A MAC, MAC, MAC

This is an excerpt from Manning's book Real-World Cryptography.
To solve this, we need to use a different cryptographic primitive called a message authentication code (MAC). Do not focus on the name too much, as it has poorly aged.
A MAC is a secret-key algorithm that has the following interface:
Figure 3.4. The interface of a Message Authentication Code. The algorithm takes a secret key and a message, and deterministically produces an unique authentication tag. Without the key, it should be impossible to reproduce that authentication tag.
![]()
A MAC takes a secret key and a message and produces a unique authentication tag. This process is deterministic: given the same secret key and the same message, the same authentication tag will be produced.