function drupal_get_hash_salt

Gets a salt useful for hardening against SQL injection.

Return value

string A salt based on information in settings.php, not in the database.

6 calls to drupal_get_hash_salt()
drupal_classloader in drupal/core/includes/bootstrap.inc
Initializes and returns the class loader.
drupal_generate_test_ua in drupal/core/includes/bootstrap.inc
Generates a user agent string with a HMAC and timestamp for simpletest.
drupal_get_token in drupal/core/includes/common.inc
Generates a token based on $value, the user session, and the private key.
drupal_valid_test_ua in drupal/core/includes/bootstrap.inc
Returns the test prefix if this is an internal request from SimpleTest.
user_pass_rehash in drupal/core/modules/user/user.module
Creates a unique hash value for use in time-dependent per-user URLs.

... See full list

File

drupal/core/includes/bootstrap.inc, line 2010
Functions that need to be loaded on every Drupal request.

Code

function drupal_get_hash_salt() {
  global $drupal_hash_salt;
  return !empty($drupal_hash_salt) ? $drupal_hash_salt : '';
}