What is the Difference between a Hash and MAC (Message Authentication code)?

后端 未结 7 493
忘了有多久
忘了有多久 2020-12-12 13:35

What is the Difference between a Hash and MAC (Message Authentication code)?

By their definitions they seem to serve the same function.

Can someone explain w

7条回答
  •  一整个雨季
    2020-12-12 14:26

    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.

提交回复
热议问题