Good choice for a lightweight checksum algorithm?

后端 未结 9 1698
礼貌的吻别
礼貌的吻别 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:15

    [UPDATE 30/5/2013: The link to the old JS CRC32 implementation died, so I've now linked to a different one.]

    Google CRC32: fast, and much lighter weight than MD5 et al. There is a Javascript implementation here.

提交回复
热议问题