UriSigner
UriSigner
class UriSigner
Signs URIs.
Methods
__construct(string $secret) Constructor. | ||
string | sign(string $uri) Signs a URI. | |
bool | check(string $uri) Checks that a URI contains the correct hash. |
Details
__construct(string $secret)
Constructor.
Parameters
string | $secret | A secret |
string sign(string $uri)
Signs a URI.
The given URI is signed by adding a