Exemplo n.º 1
0
 /**
  * @return string
  */
 private function getCheckSum()
 {
     return base64_encode(WiseChatCrypt::encrypt(serialize($this->shortCodeOptions)));
 }
Exemplo n.º 2
0
 private function verifyCheckSum()
 {
     $checksum = $this->getParam('checksum');
     if ($checksum !== null) {
         $decoded = unserialize(WiseChatCrypt::decrypt(base64_decode($checksum)));
         if (is_array($decoded)) {
             $this->options->replaceOptions($decoded);
         }
     }
 }