You are here

private function UriSigner::computeHash in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/UriSigner.php \Symfony\Component\HttpKernel\UriSigner::computeHash()
2 calls to UriSigner::computeHash()
UriSigner::check in vendor/symfony/http-kernel/UriSigner.php
Checks that a URI contains the correct hash.
UriSigner::sign in vendor/symfony/http-kernel/UriSigner.php
Signs a URI.

File

vendor/symfony/http-kernel/UriSigner.php, line 87

Class

UriSigner
Signs URIs.

Namespace

Symfony\Component\HttpKernel

Code

private function computeHash($uri) {
  return urlencode(base64_encode(hash_hmac('sha256', $uri, $this->secret, true)));
}