Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Oct 3, 2023
1 parent 59d8462 commit 4b33f01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PubNub/PNConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class PNConfiguration

private $usingUserId = null;

private string $cipherKey;

/**
* PNConfiguration constructor.
*/
Expand Down Expand Up @@ -122,7 +124,7 @@ public function setSecretKey($secretKey)
*/
public function getCipherKey()
{
return $this->getCrypto()->getCipherKey();
return $this->cipherKey;
}

public function isAesEnabled()
Expand All @@ -136,6 +138,7 @@ public function isAesEnabled()
*/
public function setCipherKey($cipherKey)
{
$this->cipherKey = $cipherKey;
if ($this->crypto == null) {
$this->crypto = CryptoModule::legacyCryptor($cipherKey, $this->getUseRandomIV());
} else {
Expand Down

0 comments on commit 4b33f01

Please sign in to comment.