Message Authentication Codes We do the same trick as for encryption: have a large class of hash functions, and use a shared secret to pick the right one. Only those who know the secret can generate, or even check, the hash values. These "keyed hashes" are usually called Message Authentication Codes, or MACs. Common examples: SHA1-HMAC, CBC-MAC