3 ms·
Hum, no. You can easily hash numbers from 1 up to the value you see and guess the next value. If you want a secure identifier, make a random 64 or 128 bits num
by marcosdumay 3y ago
Hum, no. You can easily hash numbers from 1 up to the value you see and guess the next value.
If you want a secure identifier, make a random 64 or 128 bits number (a UUID type 4). And do not use this number as an internal identifier, because identifiers performance is all about predictability and low entropy.
- gnulinux 3y agoIf you use a robust salt, such a randomly generated long salt, attacker won't be able to guess the next hash.