Difference between CRC and hash method (MD5, SHA1)

前端 未结 2 1665
南方客
南方客 2021-01-12 18:15

Both CRC and hash methods can be used to verify the integrity of the original data. Why do most systems uses hash method nowadays?

2条回答
  •  半阙折子戏
    2021-01-12 18:46

    CRC was designed to prevent transmission errors, not malicious action.

    Therefore, it isn't collision resistant.

    In particular, the linear properties of CRC codes even allow an attacker to modify a message in such a way as to leave the check value unchanged

提交回复
热议问题