When is CRC more appropriate to use than MD5/SHA1?

后端 未结 13 1504
走了就别回头了
走了就别回头了 2020-11-28 01:46

When is it appropriate to use CRC for error detection versus more modern hashing functions such as MD5 or SHA1? Is the former easier to implement on embedded hardware?

13条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 01:59

    For CRC information on implementation, speed and reliability see A painless guide to CRC error detection algorithms. It has everything on CRCs.

    Unless somebody is going to try and modify your data maliciously and hide the change CRC is sufficient. Just use a "Good" (standard) polinomial.

提交回复
热议问题