Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between CRC and hash method (MD5, SHA1)

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

like image 467
user496949 Avatar asked Feb 24 '11 01:02

user496949


2 Answers

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

like image 97
SLaks Avatar answered Sep 24 '22 23:09

SLaks


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.

like image 24
Pablo Santa Cruz Avatar answered Sep 24 '22 23:09

Pablo Santa Cruz