Menu
Seems like a basic bit of function but I’ve never needed to write one.
My question is around storing of passwords in MySQL, what’s the best practice and how do you compare when logging in?
Is this best practice?
And do store and compare is it as simple as…
`$passwordToSave = password_hash(“users-password”, PASSWORD_BCRYPT, $options);
And
`$row[‘storedPassword’] == password_hash(“logging-in-password”, PASSWORD_BCRYPT, $options);