News for hackers. Stuff that matters.
Re:Pg-shortkey: YouTube-Like Short IDs as Postgres Primary Keys by lucb1e on Saturday December 05, 2020 @11:44AM (#25315850)
Those are different kinds of algorithms. Something like CRC32, siphash, etc. are much faster than a hashing function meant to be cryptographically secure. They just don't have the same constraints. This xxHash claims it "successfully completes the SMHasher test suite" which is good in the same way that a PRNG passing randomness tests is good but not necessarily cryptographically secure.

The table on the page you linked also says in the notes whether an algorithm was meant for cryptographic purposes, and indeed all of those are at the bottom by quite a margin.

There are no comments on this comment yet.