Hash Code and Checksum - what's the difference?

后端 未结 13 1778
天命终不由人
天命终不由人 2020-12-04 07:29

My understanding is that a hash code and checksum are similar things - a numeric value, computed for a block of data, that is relatively unique.

i.e. The pr

13条回答
  •  醉话见心
    2020-12-04 07:57

    • hash code(Sip Hash) usually is used for hash tables where access time near O(1)
    • check sum(MD5, SHA) is used to indicate data integrity

    The main difference is that check sum must me unique while hash code can be the same for different objects

提交回复
热议问题