private function UriSigner::computeHash

2 calls to UriSigner::computeHash()
UriSigner::check in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/UriSigner.php
Checks that a URI contains the correct hash.
UriSigner::sign in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/UriSigner.php
Signs a URI.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/UriSigner.php, line 68

Class

UriSigner
Signs URIs.

Namespace

Symfony\Component\HttpKernel

Code

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