Link to home
Start Free TrialLog in
Avatar of burnedfaceless
burnedfaceless

asked on

Does password_verify automatically detect the salt?

As I understand password verify a salt is encrypted and added to the database, then it is added to the password so that a different hash is generated.

Does password_verify automatically generate a salt in conjunction with password_hash?

How is the salt consistent (so that the correct salt is used when the password is verified) but different (so that it doesn't defeat the purpose of a salt)?
SOLUTION
Avatar of Ogandos
Ogandos
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of burnedfaceless
burnedfaceless

ASKER

Good stuff, PHP makes this really easy.