functions used to encrypt password in php?

后端 未结 3 816
我寻月下人不归
我寻月下人不归 2021-01-29 12:22

I am programming a PHP site that allows users to register,I\'m using codeigniter php and I want to know the best function to encrypt passwords and what difference between this f

3条回答
  •  梦谈多话
    2021-01-29 13:08

    Passwords should almost never be encrypted. Instead, they should be one-way hashed.

    Generally, bcrypt is recommended, as it's resistant to brute forcing, where common alternatives like md5 or sha1 fail.

提交回复
热议问题