Secure password storage

前端 未结 7 854
别那么骄傲
别那么骄傲 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:57

    Well, you shouldn't encrypt them with MD5 (which is not really secured, most hackers have conversion tables).

    Hence, you can hash it with SHA1 (which is usually used).

    If you want more security, you can add more salt which is a key you can add like this (just an example, usually used) :

    salt+sha1(salt+pass)
    

    This combination can be used with many language.

    0 讨论(0)
提交回复
热议问题