Cartalyst\Sentinel\Hashing\BcryptHasher::check PHP Method

check() public method

{@inheritDoc}
public check ( $value, $hashedValue )
    public function check($value, $hashedValue)
    {
        return $this->slowEquals(crypt($value, $hashedValue), $hashedValue);
    }

Usage Example

 public function testSymbolsValue()
 {
     $hasher = new BcryptHasher();
     $hashedValue = $hasher->hash('!"#$%^&*()-_,./:;<=>?@[]{}`~|');
     $this->assertTrue($hashedValue !== '!"#$%^&*()-_,./:;<=>?@[]{}`~|');
     $this->assertTrue($hasher->check('!"#$%^&*()-_,./:;<=>?@[]{}`~|', $hashedValue));
 }
BcryptHasher