function bakery_bake_data

cis7 bakery.module bakery_bake_data($data)
cle7 bakery.module bakery_bake_data($data)
elmsmedia7 bakery.module bakery_bake_data($data)
icor7 bakery.module bakery_bake_data($data)
meedjum_blog7 bakery.module bakery_bake_data($data)
mooc7 bakery.module bakery_bake_data($data)

Encrypt and sign data for Bakery transfer.

Parameters

Array of data to be transferred.:

Return value

String of signed and encrypted data, url safe.

6 calls to bakery_bake_data()
bakery_bake_oatmeal_cookie in sites/all/modules/ulmus/bakery/bakery.module
Create a cookie for passing information between sites for registration and login.
bakery_eat_gingerbread_cookie in sites/all/modules/ulmus/bakery/bakery.module
Respond with account information.
bakery_request_account in sites/all/modules/ulmus/bakery/bakery.module
Request account information from master to create account locally.
bakery_user_update in sites/all/modules/ulmus/bakery/bakery.module
Implements hook_user_update().
_bakery_bake_chocolatechip_cookie in sites/all/modules/ulmus/bakery/bakery.module
Create a new cookie for identification

... See full list

File

sites/all/modules/ulmus/bakery/bakery.module, line 878

Code

function bakery_bake_data($data) {
  $key = variable_get('bakery_key', '');
  $data = bakery_encrypt(serialize($data));
  $signature = hash_hmac('sha256', $data, $key);
  return base64_encode($signature . $data);
}
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.