Search for hash

  1. Search 7.x for hash
  2. Search 8.9.x for hash
  3. Search 10.3.x for hash
  4. Search 11.x for hash
  5. Other projects
Title Object type File name Summary
PasswordHashingTest::testLongPassword function core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php Verifies that passwords longer than 512 bytes are not hashed.
PasswordHashingTest::testPasswordHashing function core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php Tests password hashing.
PasswordHashingTest::testPasswordNeedsUpdate function core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php Tests a password needs update.
PasswordHashingTest::testPasswordRehashing function core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php Tests password rehashing.
PasswordHashingTest::testWithinBounds function core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php Tests the hash count boundaries are enforced.
PasswordInterface::hash function core/lib/Drupal/Core/Password/PasswordInterface.php Hash a password using a secure hash.
PasswordInterface::needsRehash function core/lib/Drupal/Core/Password/PasswordInterface.php Check whether a hashed password needs to be replaced with a new hash.
PasswordItemTest::testPreSavePreHashed function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php @covers ::preSave
PermissionsHashGenerator class core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Generates and caches the permissions hash for a user.
PermissionsHashGenerator.php file core/lib/Drupal/Core/Session/PermissionsHashGenerator.php
PermissionsHashGenerator::$cache property core/lib/Drupal/Core/Session/PermissionsHashGenerator.php The cache backend interface to use for the persistent cache.
PermissionsHashGenerator::$privateKey property core/lib/Drupal/Core/Session/PermissionsHashGenerator.php The private key service.
PermissionsHashGenerator::$static property core/lib/Drupal/Core/Session/PermissionsHashGenerator.php The cache backend interface to use for the static cache.
PermissionsHashGenerator::doGenerate function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Generates a hash that uniquely identifies the user's permissions.
PermissionsHashGenerator::generate function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Cached by role, invalidated whenever permissions change.
PermissionsHashGenerator::hash function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Hashes the given string.
PermissionsHashGenerator::__construct function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Constructs a PermissionsHashGenerator object.
PermissionsHashGeneratorInterface interface core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php Defines the user permissions hash generator interface.
PermissionsHashGeneratorInterface.php file core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php
PermissionsHashGeneratorInterface::generate function core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php Generates a hash that uniquely identifies a user's permissions.
PermissionsHashGeneratorTest class core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @coversDefaultClass \Drupal\Core\Session\PermissionsHashGenerator
@group Session
PermissionsHashGeneratorTest.php file core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
PermissionsHashGeneratorTest::$account1 property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The mocked super user account.
PermissionsHashGeneratorTest::$account2 property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php A mocked account.
PermissionsHashGeneratorTest::$account2Updated property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php An "updated" mocked account.
PermissionsHashGeneratorTest::$account3 property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php A different account.
PermissionsHashGeneratorTest::$cache property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The mocked cache backend.
PermissionsHashGeneratorTest::$permissionsHash property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The permission hash class being tested.
PermissionsHashGeneratorTest::$privateKey property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The mocked private key service.
PermissionsHashGeneratorTest::$staticCache property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The mocked cache backend.
PermissionsHashGeneratorTest::setUp function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
PermissionsHashGeneratorTest::testGenerate function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @covers ::generate
PermissionsHashGeneratorTest::testGenerateNoCache function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php Tests the generate method with no cache returned.
PermissionsHashGeneratorTest::testGeneratePersistentCache function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @covers ::generate
PermissionsHashGeneratorTest::testGenerateStaticCache function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @covers ::generate
PhpassHashedPassword class core/lib/Drupal/Core/Password/PhpassHashedPassword.php Secure hashing functions based on Portable PHP password hashing framework.
PhpassHashedPassword.php file core/lib/Drupal/Core/Password/PhpassHashedPassword.php
PhpassHashedPassword::$countLog2 property core/lib/Drupal/Core/Password/PhpassHashedPassword.php Password stretching iteration count.
PhpassHashedPassword::$ITOA64 property core/lib/Drupal/Core/Password/PhpassHashedPassword.php Returns a string for mapping an int to the corresponding base 64 character.
PhpassHashedPassword::base64Encode function core/lib/Drupal/Core/Password/PhpassHashedPassword.php Encodes bytes into printable base 64 using the *nix standard from crypt().
PhpassHashedPassword::check function core/lib/Drupal/Core/Password/PhpassHashedPassword.php Check whether a plain text password matches a hashed password.
PhpassHashedPassword::crypt function core/lib/Drupal/Core/Password/PhpassHashedPassword.php Hash a password using a secure stretched hash.
PhpassHashedPassword::enforceLog2Boundaries function core/lib/Drupal/Core/Password/PhpassHashedPassword.php Ensures that $count_log2 is within set bounds.
PhpassHashedPassword::generateSalt function core/lib/Drupal/Core/Password/PhpassHashedPassword.php Generates a random base 64-encoded salt prefixed with hash settings.
PhpassHashedPassword::getCountLog2 function core/lib/Drupal/Core/Password/PhpassHashedPassword.php Parses the log2 iteration count from a stored hash or setting string.
PhpassHashedPassword::hash function core/lib/Drupal/Core/Password/PhpassHashedPassword.php Hash a password using a secure hash.
PhpassHashedPassword::HASH_LENGTH constant core/lib/Drupal/Core/Password/PhpassHashedPassword.php The expected (and maximum) number of characters in a hashed password.
PhpassHashedPassword::MAX_HASH_COUNT constant core/lib/Drupal/Core/Password/PhpassHashedPassword.php The maximum allowed log2 number of iterations for password stretching.
PhpassHashedPassword::MIN_HASH_COUNT constant core/lib/Drupal/Core/Password/PhpassHashedPassword.php The minimum allowed log2 number of iterations for password stretching.
PhpassHashedPassword::needsRehash function core/lib/Drupal/Core/Password/PhpassHashedPassword.php Check whether a hashed password needs to be replaced with a new hash.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.