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

后端 未结 7 505
忘了有多久
忘了有多久 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:11

    1. Hash functions utilize asymmetric cryptography whereas, MAC use symmetric cryptography.
    2. Cryptographic hash functions are not always a MAC, but MAC can be a cryptographic hash functions (keyed hash functions).
    3. Hash functions provide non-repudiation where MAC do no provide non-re

提交回复
热议问题