function drupal_hash_base64

cis7 drupal_hash_base64($data)
cle7 drupal_hash_base64($data)
elmsmedia7 drupal_hash_base64($data)
icor7 drupal_hash_base64($data)
meedjum_blog7 drupal_hash_base64($data)
mooc7 drupal_hash_base64($data)

Calculates a base-64 encoded, URL-safe sha-256 hash.


$data: String to be hashed.

Return value

A base-64 encoded sha-256 hash, with + replaced with -, / with _ and any = padding characters removed.

31 calls to drupal_hash_base64()
actions_actions_map in includes/
Creates an associative array keyed by hashes of function names or IDs.
actions_function_lookup in includes/
Returns an action array key (function or ID), given its hash.
advagg_admin_operations_form in sites/all/modules/ulmus/advagg/
Form builder; Do advagg operations.
advagg_admin_toggle_bypass_cookie in sites/all/modules/ulmus/advagg/
Set or remove the AdvAggDisabled cookie.
advagg_bundler_analysis in sites/all/modules/ulmus/advagg/advagg_bundler/advagg_bundler.module
Given a filename return a bundle key.

... See full list


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


function drupal_hash_base64($data) {
  $hash = base64_encode(hash('sha256', $data, TRUE));
  // Modify the hash so it's safe to use in URLs.
  return strtr($hash, array('+' => '-', '/' => '_', '=' => ''));



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.