Emarref\Jwt\Encryption\Symmetric::verify PHP Method

verify() public method

public verify ( string $value, string $signature ) : boolean
$value string
$signature string
return boolean
    public function verify($value, $signature)
    {
        $computedValue = $this->algorithm->compute($value);
        return $this->timingSafeEquals($signature, $computedValue);
    }