Can someone point me to a good PHP/MySQL salted hashed password implementation?

后端 未结 8 715
感情败类
感情败类 2021-02-06 07:33

After reading about salts password hashing Id like to implement a simple version for an admin area to a site Im building.

If you have any good links with code that have

8条回答
  •  礼貌的吻别
    2021-02-06 07:57

    Could you use the built in crypt(...) function?

    ... Usage ...

    crypt('rasmuslerdorf', '$1$rasmusle$')
    

    ... Result ...

    MD5: $1$rasmusle$rISCgZzpwk3UhDidwXvin0
    

    ... There are more examples and other hash methods available in the documentation.

提交回复
热议问题