Good choice for a lightweight checksum algorithm?

后端 未结 9 1700
礼貌的吻别
礼貌的吻别 2020-12-30 06:04

I find myself needing to generate a checksum for a string of data, for consistency purposes. The broad idea is that the client can regenerate the checksum based on the payl

9条回答
  •  情书的邮戳
    2020-12-30 06:11

    Are aware that both TCP and UDP (and IP, and Ethernet, and...) already provide checksum protection to data in transit?

    Unless you're doing something really weird, if you're seeing corruption, something is very wrong. I suggest starting with a memory tester.

    Also, you receive strong data integrity protection if you use SSL/TLS.

提交回复
热议问题