Secure password storage

前端 未结 7 934
别那么骄傲
别那么骄傲 2021-01-20 09:22

I\'m developing a web service where users must login. I will store user data in an SQL database and input/output via PHP. But I don\'t want to store it openly. How do I encr

7条回答
  •  别那么骄傲
    2021-01-20 09:38

    You need to salt and hash the password, using an appropriately secure algorithm.

    • PHP's mhash has appropriate hashing functions
    • A full example here on SO

提交回复
热议问题