You are here

private function Bakery::sign in Bakery Single Sign-On System 7.3

Return hash of data.

Parameters

string $data Text to sign.:

Return value

string 64 character signature.

2 calls to Bakery::sign()
Bakery::bakeData in ./bakery.inc
Serialze, sign and encode data for secure transport.
Bakery::validateData in ./bakery.inc
Validate and decrypt baked data.

File

./bakery.inc, line 316

Class

Bakery

Code

private function sign($data) {
  $key = $this->key;
  return hash_hmac('sha256', $data, $key);
}