Answer the question
In order to leave comments, you need to log in
How does Lavarel encrypt a user's password and verify it?
There was a need to use the site database, and actually you need to understand how Laravel generates a password hash and check it
Answer the question
In order to leave comments, you need to log in
password_hash($password , PASSWORD_BCRYPT)
and
password_verify ($password , $hash )
What nonsense. Instead of a normal answer, they send a person to read footcloths on Habré.
This is how he encrypts it:
$hash = password_hash($value, PASSWORD_BCRYPT, array('cost' => 10));
And this is how it checks:
password_verify($value, $hashedValue);
where the password is in the $value variable
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question