Symmetric and Hashing
Keyed MAC Tag
Add a tiny secret MAC key so the receiver can reject tampered ciphertext. This is toy arithmetic only, not deployable security.
cryptography
This lesson uses a fixed toy tag formula to show the role of a secret authentication key. The sum-based tag is deliberately weak and can miss sum-preserving edits; it is not a real MAC.