function drupal_get_hash_salt

cis7 drupal_get_hash_salt()
cle7 drupal_get_hash_salt()
elmsmedia7 drupal_get_hash_salt()
icor7 drupal_get_hash_salt()
meedjum_blog7 drupal_get_hash_salt()
mooc7 drupal_get_hash_salt()

Gets a salt useful for hardening against SQL injection.

Return value

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

8 calls to drupal_get_hash_salt()
drupal_generate_test_ua in includes/
Generates a user agent string with a HMAC and timestamp for simpletest.
drupal_get_token in includes/
Generates a token based on $value, the user session, and the private key.
drupal_valid_test_ua in includes/
Returns the test prefix if this is an internal request from SimpleTest.
file_entity_get_download_token in sites/all/modules/ulmus/file_entity/file_entity.module
image_style_path_token in modules/image/image.module
Generates a token to protect an image style derivative.

... See full list


includes/, line 2289
Functions that need to be loaded on every Drupal request.


function drupal_get_hash_salt() {
  global $drupal_hash_salt, $databases;
  // If the $drupal_hash_salt variable is empty, a hash of the serialized
  // database credentials is used as a fallback salt.
  return empty($drupal_hash_salt) ? hash('sha256', serialize($databases)) : $drupal_hash_salt;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.