PHP·98 questions

How to store passwords?

Answer
password_hash($password, PASSWORD_DEFAULT).
password_verify() for checking.
NEVER md5/sha1.
Bcrypt used by default.
PASSWORD_ARGON2ID is even better.
Was this answer helpful?

More questions in this topic

Related questions from other topics