How can I store my users' passwords safely?

后端 未结 6 1782
长发绾君心
长发绾君心 2020-11-21 23:37

How much more safe is this than plain MD5? I\'ve just started looking into password security. I\'m pretty new to PHP.

$salt = \'csdnfgksdgojnmfnb\';

$passwo         


        
6条回答
  •  抹茶落季
    2020-11-22 00:07

    That's fine with me. Mr Atwood wrote about the strength of MD5 against rainbow tables, and basically with a long salt like that you're sitting pretty (though some random punctuation/numbers, it could improve it).

    You could also look at SHA-1, which seems to be getting more popular these days.

提交回复
热议问题