3 ms·
Honestly, this isn't a bad idea. The big problem with using sha1/md5 in non-secure contexts is: *Someone later might think its secure and rely on that when ex
by bawolff 4y ago
Honestly, this isn't a bad idea.
The big problem with using sha1/md5 in non-secure contexts is:
*Someone later might think its secure and rely on that when extending the system.
*it can make it difficult for security people to audit code later as you have to figure out if each usage is security critical
Using a non crypto hash makes both those concerns go away since everyone knows crc32 is insecure. The alternative of using sha256 also works (performance wise it is close enough, so why not just use the secure one and be done with it.)