function drupal_hash_base64

cis7 bootstrap.inc drupal_hash_base64($data)
cle7 bootstrap.inc drupal_hash_base64($data)
elmsmedia7 bootstrap.inc drupal_hash_base64($data)
icor7 bootstrap.inc drupal_hash_base64($data)
meedjum_blog7 bootstrap.inc drupal_hash_base64($data)
mooc7 bootstrap.inc drupal_hash_base64($data)

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

Parameters

$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/actions.inc
Creates an associative array keyed by hashes of function names or IDs.
actions_function_lookup in includes/actions.inc
Returns an action array key (function or ID), given its hash.
advagg_admin_operations_form in sites/all/modules/ulmus/advagg/advagg.admin.inc
Form builder; Do advagg operations.
advagg_admin_toggle_bypass_cookie in sites/all/modules/ulmus/advagg/advagg.admin.inc
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

File

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

Code

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 | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.