A Message authentication code (MAC) is a one way hash function which takes as input both a symmetric key and some data.

A MAC is usually constructed using a one way hash functions (cf. HMACs) or a block cipher (eg. CBC-MAC).