Going from unsalted to salted MD5 passwords

后端 未结 12 835
臣服心动
臣服心动 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条回答
  •  梦毁少年i
    2021-02-07 03:37

    The answer is simple, make sure the keep a record or some sort of flag of which users have passwords on the new system of hashing, when they next login, authenticate them, calculate the new hash, flip the flag.

    Now whenever someone logs in and the flag is set, authenticate them with the new hash.

提交回复
热议问题