Welcome Guest, Not a member yet? Register   Sign In
[Help] Secure Password Hashing Algorithm
#1

Hello,

I have this lines of code:
Code:
$password = $_POST['password'];
$salt = '$2a$07$R.gJb2U2N.FmZ4hPp1y2CN$';
$encrypted_password = crypt($password, $salt);

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.
Reply


Messages In This Thread
[Help] Secure Password Hashing Algorithm - by atom - 06-13-2015, 06:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB