Search for hash

  1. Search 9.5.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
BlockHashTestCase class modules/block/block.test Tests that block rehashing works correctly.
BlockHashTestCase::assertWeight function modules/block/block.test Asserts that the block_test module's block has a given weight.
BlockHashTestCase::doRehash function modules/block/block.test Performs a block rehash and checks several related assertions.
BlockHashTestCase::getInfo function modules/block/block.test
BlockHashTestCase::setUp function modules/block/block.test Sets up a Drupal site for running functional and integration tests.
BlockHashTestCase::testBlockRehash function modules/block/block.test Tests that block rehashing does not write to the database too often.
BlockTestCase::testBlockRehash function modules/block/block.test Test _block_rehash().
DatabaseSchema_pgsql::hashBase64 function includes/database/pgsql/schema.inc Calculates a base-64 encoded, PostgreSQL-safe sha-256 hash per PostgreSQL
documentation: 4.1. Lexical Structure.
drupal_get_hash_salt function includes/bootstrap.inc Gets a salt useful for hardening against SQL injection.
drupal_hash_base64 function includes/bootstrap.inc Calculates a base-64 encoded, URL-safe sha-256 hash.
DRUPAL_HASH_COUNT constant includes/password.inc The standard log2 number of iterations for password stretching. This should
increase by 1 every Drupal version in order to counteract increases in the
speed and power of computers available to crack the hashes.
DRUPAL_HASH_LENGTH constant includes/password.inc The expected (and maximum) number of characters in a hashed password.
DRUPAL_MAX_HASH_COUNT constant includes/password.inc The maximum allowed log2 number of iterations for password stretching.
DRUPAL_MIN_HASH_COUNT constant includes/password.inc The minimum allowed log2 number of iterations for password stretching.
password-hash.sh file scripts/password-hash.sh #!/usr/bin/env php
<?php

/**
* Drupal hash script - to generate a hash from a plaintext password
*
* Check for your PHP interpreter - on Windows you'll probably have to
* replace line 1 with
* #!c:/program files/php/php.exe
*
*…
PasswordHashingTest class modules/simpletest/tests/password.test Unit tests for password hashing API.
PasswordHashingTest::$profile property modules/simpletest/tests/password.test The profile to install as a basis for testing.
PasswordHashingTest::getInfo function modules/simpletest/tests/password.test
PasswordHashingTest::setUp function modules/simpletest/tests/password.test Sets up a Drupal site for running functional and integration tests.
PasswordHashingTest::testLongPassword function modules/simpletest/tests/password.test Verifies that passwords longer than 512 bytes are not hashed.
PasswordHashingTest::testPasswordHashing function modules/simpletest/tests/password.test Test password hashing.
SessionTestCase::testHashedSessionIds function modules/simpletest/tests/session.test Test hashing of session ids in the database.
SessionTestCase::testHashedSessionIdsOptOut function modules/simpletest/tests/session.test Test opt-out of hashing of session ids in the database.
UserLoginTestCase::testPasswordRehashOnLogin function modules/user/user.test Test that user password is re-hashed upon login after changing $count_log2.
user_hash_password function includes/password.inc Hash a password using a secure hash.
user_needs_new_hash function includes/password.inc Check whether a user's hashed password needs to be replaced with a new hash.
user_pass_rehash function modules/user/user.module Creates a unique hash value for use in time-dependent per-user URLs.
_block_rehash function modules/block/block.module Updates the 'block' DB table with the blocks currently exported by modules.

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