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
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.
md5
sha1