UriSigner

UriSigner

class UriSigner

Signs URIs.

Methods

__construct(string $secret, string $parameter = '_hash')

Constructor.

string sign(string $uri)

Signs a URI.

bool check(string $uri)

Checks that a URI contains the correct hash.

Details

__construct(string $secret, string $parameter = '_hash')

Constructor.

Parameters

string $secret A secret
string $parameter Query string parameter to use
登录查看完整内容