private function checkModeBcrypt($password, $hash)
    {
        $this->cwsDebug->titleH2('Check password hash in BCRYPT mode');
        $this->cwsDebug->labelValue('Password', $password);
        $this->cwsDebug->labelValue('Hash', $hash);

        $checkHash = crypt($password, $hash);
        $this->cwsDebug->labelValue('Check hash', $checkHash);

        $result = $this->slowEquals($hash, $checkHash);
        $this->cwsDebug->labelValue('Valid?', ($result ? 'YES!' : 'NO...'));

        return $result;
    }
private function checkModeBcrypt($password, $hash)
    {
        $this->cwsDebug->titleH2('Check password hash in BCRYPT mode');
        $this->cwsDebug->labelValue('Password', $password);
        $this->cwsDebug->labelValue('Hash', $hash);

        $checkHash = crypt($password, $hash);
        $this->cwsDebug->labelValue('Check hash', $checkHash);

        $result = $this->slowEquals($hash, $checkHash);
        $this->cwsDebug->labelValue('Valid?', ($result ? 'YES!' : 'NO...'));

        return $result;
    }
private function checkModeBcrypt ( $ password , $ hash ) { $ this -> cwsDebug -> titleH2 ( 'Check password hash in BCRYPT mode' ) ; $ this -> cwsDebug -> labelValue ( 'Password' , $ password ) ; $ this -> cwsDebug -> labelValue ( 'Hash' , $ hash ) ; $ checkHash = crypt ( $ password , $ hash ) ; $ this -> cwsDebug -> labelValue ( 'Check hash' , $ checkHash ) ; $ result = $ this -> slowEquals ( $ hash , $ checkHash ) ; $ this -> cwsDebug -> labelValue ( 'Valid?' , ( $ result ? 'YES!' : 'NO...' ) ) ; return $ result ; }
Check a hash with the password given using BCRYPT mode.

@param string $password
@param string $hash

@return bool
Check a hash with the password given using BCRYPT mode .