src/includes/classes/Core/Utils/UrlQuery.php
public function sha256SigOk(string $qs_url_uri, string $key = '', string $sig_var = ''): bool
    {
        $sig_var = $sig_var ?: $this::DEFAULT_SIG_VAR;
        $args    = $this->parse($qs_url_uri);
        $sig     = $this->sha256Sig($qs_url_uri, $key, $sig_var);

        return !empty($args[$sig_var]) && $args[$sig_var] === $sig;
    }
public function sha256SigOk(string $qs_url_uri, string $key = '', string $sig_var = ''): bool
    {
        $sig_var = $sig_var ?: $this::DEFAULT_SIG_VAR;
        $args    = $this->parse($qs_url_uri);
        $sig     = $this->sha256Sig($qs_url_uri, $key, $sig_var);

        return !empty($args[$sig_var]) && $args[$sig_var] === $sig;
    }
Checks a signature.

@since 150424 Initial release.

@param string $qs_url_uri A query string (w/ or w/o a leading `?`), a URL, or URI.
@param string $key        Encryption key (optional).
@param string $sig_var    Defaults to `sig`.

@return bool True if a valid signature exists.