2 ms·
You don't actually need a cryptographic hash here [1]. I'd rather use a fast hash like Murmur instead. [1] Exception: I don't know how prone Murmur is to hash
by majewsky 10y ago
You don't actually need a cryptographic hash here [1]. I'd rather use a fast hash like Murmur instead.
[1] Exception: I don't know how prone Murmur is to hash collisions, so if collision-based attacks are part of your threat model, a randomly salted cryptographic hash might be appropriate.