3 ms·
It absolutely needs to be a strong cryptographic hash, because you want to protect against both deliberate tampering and accidental modification. Any other fun
by niftich 10y ago
It absolutely needs to be a strong cryptographic hash, because you want to protect against both deliberate tampering and accidental modification.
Any other function, whether non-cryptographic, too short, broken or having known weaknesses, while perhaps suitable to detect accidental corruption, will not protect against the former.
For example, SHA-384, or SHA-3 are great choices.
- jMyles 10y agoGotcha. TIL.
- Dylan16807 10y agoThough this isn't a case that needs to be append-proof, so SHA-256 is fine.