/** * @return string */ private function getCheckSum() { return base64_encode(WiseChatCrypt::encrypt(serialize($this->shortCodeOptions))); }
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); } } }