Message Authentication Codes or MACs are used by two parties to validate that a message hadn't been altered in transit. Only the nodes which posses the keys/Secrets may compute the MAC and validate the MAC against an input text. This page demonstrates the use of an HMAC.