[Help] Secure Password Hashing Algorithm |
Hello,
I have this lines of code: Code: $password = $_POST['password']; It successfully stores the encrypted password in my database and I also used that same line of code in LogIn but it wasn't working. Do you guys know how to compare the password from login to password that was stored in the database? Thanks in advance.
Why don't you use SHA1 built-in hash function for password encryption?That is one of the best secure solution.
The FAS Solutions
corporate web development web designs and development services http://www.thefas-solutions.com
Use PHP's password_hash() (which currently uses BCrypt, but may be updated in the future to support other algorithms). That page also includes a link to a library which adds support for the password_ functions for PHP versions prior to 5.5, if needed.
|
Welcome Guest, Not a member yet? Register Sign In |