PermissionsHashGenerator::hash

protected PermissionsHashGenerator::hash($identifier)

Hashes the given string.

Parameters

string $identifier: The string to be hashed.

Return value

string The hash.

File

core/lib/Drupal/Core/Session/PermissionsHashGenerator.php, line 121

Class

PermissionsHashGenerator
Generates and caches the permissions hash for a user.

Namespace

Drupal\Core\Session

Code

protected function hash($identifier) {
  return hash('sha256', $this->privateKey->get() . Settings::getHashSalt() . $identifier);
}
doc_Drupal
2016-10-29 09:33:43
Comments
Leave a Comment

Please login to continue.