Validate a password
- User enters the password to be validated.
- The combination of the password and salt is hashed, say H1.
- The previously stored hash of password and salt, say H2, is retrieved from the database and is compared with the H1.
- If H1 is equal to H2, then the password is valid. Otherwise it is not.

Reference