is checksum the same as hash?
tags: learning diff-between
content
- checksum is used to verify if data is altered or corrupted
- seems like hash is also able to do the same thing what’s the difference between them?
- checksum is mainly for error detection, it’s very simple, it doesn’t offer collision avoidance; it’s also not secure, can be faked
- hash is for integrity, mathematically more complex, usually avoid collision
GPT:
- A checksum is like counting the number of words in a sentence to see if anything’s missing.
- A hash is like creating a digital fingerprint — unique and secure, even if the sentence changes by just a letter.