What is md5() for?

前端 未结 13 1193
無奈伤痛
無奈伤痛 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:49

    This is my question about the aspects of md5 collision, slightly related to your question:

    Is there any difference between md5 and sha1 in this situation?

    The important part is in the first 3 rows, that is: you must put your salt before the password, if you want to achieve stronger protection, not after.

提交回复
热议问题