Difference between CRC and hash method (MD5, SHA1)

倖福魔咒の 提交于 2020-02-14 06:19:08

问题


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


回答1:


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




回答2:


HASH methods (ONE WAY ENCRYPTION) are more complex (and powerful) than simple check codes (CRC). Not only they could be used to verify data integrity, but they also make sure no one could infer the original message that originated the hash value.



来源:https://stackoverflow.com/questions/5099349/difference-between-crc-and-hash-method-md5-sha1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!