/** * Returns decrypted input parameter * @param $key * @return String */ public function get($key) { if (isset($this->decryptedParams[$key])) { return $this->decryptedParams[$key]; } $value = $this->crypt->symmetricDecrypt(Base64::UrlDecode($this->params[$key])); $this->decryptedParams[$key] = $value; return $value; }
/** * Decrypts RSA-encrypted data * @param String $data Data to decrypt * @return String */ public function asymmetricDecrypt($data) { if (!$this->isRsaInitialized) { $this->initAsymmetric(); } return $this->rsa->decrypt(Base64::UrlDecode($data)); }