You are here

function facetapi_hash_base64 in Facet API 6.3

1 call to facetapi_hash_base64()
facetapi_hash_delta in ./facetapi.block.inc
Hashing code for deltas.

File

./facetapi.block.inc, line 280
Block realm code and hook implementations.

Code

function facetapi_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(
    '+' => '-',
    '/' => '_',
    '=' => '',
  ));
}