src/Phpass/Hash.php
public function checkPassword($password, $storedHash)
    {
        $hash = $this->_crypt($password, $storedHash);

        return ($hash == $storedHash);
    }
public function checkPassword($password, $storedHash)
    {
        $hash = $this->_crypt($password, $storedHash);

        return ($hash == $storedHash);
    }
public function checkPassword ( $ password , $ storedHash ) { $ hash = $ this -> _crypt ( $ password , $ storedHash ) ; return ( $ hash == $ storedHash ) ; }
Check if a string matches a given hash value.

@param string $password
The string to check.
@param string $storedHash
The hash string to check against.
@return boolean
Returns true if the string matches the hash string, and false
otherwise.
Check if a string matches a given hash value .