Going from unsalted to salted MD5 passwords

后端 未结 12 836
臣服心动
臣服心动 2021-02-07 02:56

I have a LAMP (PHP) website which is becoming popular.

I played it safe by storing the user passwords as md5 hashes.

But I now see that\'s not secure; I should h

12条回答
  •  南方客
    南方客 (楼主)
    2021-02-07 03:50

    You can migrate the passwords by adding a column in your tables to store the new format.

    When a user logs in successfully, if the new column is empty, put the stronger password in there and empty out the original column. If the new column has an entry, compare the input to the value in there.

提交回复
热议问题