Hacker News new | past | comments | ask | show | jobs | submit login

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.



How does this improve salting? The point of salting is to avoid rainbow tables; as long as the salt is random you should be safe.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: