src/Phpass/Hash/Adapter/Sha1Crypt.php
public function verifyHash($input)
    {
        $salt = substr($input, 0, strrpos($input, '$') + 1);
        $checksum = substr($input, strrpos($input, '$') + 1);

        return ($this->verifySalt($salt) && 1 === preg_match('/^[\.\/0-9A-Za-z]{28}$/', $checksum));
    }
public function verifyHash($input)
    {
        $salt = substr($input, 0, strrpos($input, '$') + 1);
        $checksum = substr($input, strrpos($input, '$') + 1);

        return ($this->verifySalt($salt) && 1 === preg_match('/^[\.\/0-9A-Za-z]{28}$/', $checksum));
    }
public function verifyHash ( $ input ) { $ salt = substr ( $ input , 0 , strrpos ( $ input , '$' ) + 1 ) ; $ checksum = substr ( $ input , strrpos ( $ input , '$' ) + 1 ) ; return ( $ this -> verifySalt ( $ salt ) && 1 === preg_match ( '/^[\.\/0-9A-Za-z]{28}$/' , $ checksum ) ) ; }
Check if a hash string is valid for the current adapter.

@since 2.1.0
@param string $input
Hash string to verify.
@return boolean
Returns true if the input string is a valid hash value, false
otherwise.
Check if a hash string is valid for the current adapter .