Question: what is the difference between hash value and mac?
Answer: Basically the main difference is MAC uses a private key and hash does not use any keys. Because of that MAC allows us to achieve authentication. HASH FUNCTION: A function that maps a message of any length into a fixed length hash value, which serves as the authenticator.