Hash Code and Checksum - what's the difference?

后端 未结 13 1730
天命终不由人
天命终不由人 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 08:00

    These days they are interchangable, but in days of yore a checksum was a very simple techique where you'd add all the data up (usually in bytes) and tack a byte on the end with that value in.. then you'd hopefully know if any of the original data had been corrupted. Similar to a check bit, but with bytes.

提交回复
热议问题