Exemplo n.º 1
0
 public function update($key, $data, $updateTimestamp = true)
 {
     $data = $this->cypher->encrypt($data, $this->symmetricKey);
     return parent::update($key, $data, $updateTimestamp);
 }
 /**
  * Encrypts the payload data.
  *
  * @param multitype $data the data to encrypt (must be serialized and base64 encoded)
  * @param string $key the key generated by <code>createKey()</code>
  * @return string the encrypted data
  */
 private function encrypt($data, $key)
 {
     return $this->symmetricCypher->encrypt($data, $key);
 }