SproutCMS

This is the code documentation for the SproutCMS project

function doPasswordCheck()

Check a password hash against an entered password

Usage

bool Auth::doPasswordCheck ( string $known_hash , int $algorithm , string $salt , string $user_string );

Arguments

  1. string $known_hash
    The known hash to check against, typically from the database
  2. int $algorithm
    Password algorithm, Constants
  3. string $salt
  4. string $user_string
    Password which was entered by the user, to check against the stored hash

Return value

  • bool
    True if the password matches, false if it doesn't