How can I store my users' passwords safely?

后端 未结 6 1787
长发绾君心
长发绾君心 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-21 23:51

    Your users will be much safer if you used parameterized queries instead of concatenating SQL statements. And the salt should be unique for each user and should be stored along with the password hash.

提交回复
热议问题