What is md5() for?

前端 未结 13 1429
無奈伤痛
無奈伤痛 2021-01-31 01:57

I was reading this tutorial for a simple PHP login system.

In the end it recommends that you should encrypt your password using md5().

Though I know this is a be

13条回答
  •  灰色年华
    2021-01-31 02:31

    You're missing the important step - the salt. This is a unique (per user, ideally) bit of extra data that you add to the password before hashing it.

    http://en.wikipedia.org/wiki/Salt_%28cryptography%29

提交回复
热议问题