3 ms·
And to slightly improve salting: $pw_hash = sprintf('%s|%s|%s|%s|%s', SALT1, $user_name, SALT2, $pw, SALT3); In fact, my salts usually include non
by mojuba 15y ago
And to slightly improve salting:
$pw_hash = sprintf('%s|%s|%s|%s|%s',
SALT1, $user_name, SALT2, $pw, SALT3);
In fact, my salts usually include non-printables, including the NULL char, plus they are very long.
- judofyr 15y agoHow does this improve salting? The point of salting is to avoid rainbow tables; as long as the salt is random you should be safe.
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]