Skip to content

Commit

Permalink
Merge pull request #11 from gamebay/fix/aes-key
Browse files Browse the repository at this point in the history
remove hardcoded aes key
  • Loading branch information
mikulicf authored Nov 6, 2023
2 parents 3c9e49d + 8f6e7eb commit 43be4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gamebay/RKSV/Services/ReceiptSigner.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getSignService(string $signType): SignServices\SignServiceInterf
*/
public function generateQRCodeString(string $compactReceiptData, string $signature): string
{
$encrypter = new Encrypter('AES-key-123');
$encrypter = new Encrypter($this->encryptionKey);

$signature = $encrypter->base64url_decode($signature);
$signature = base64_encode($signature);
Expand Down Expand Up @@ -212,4 +212,4 @@ public function getQR(): ?string
{
return $this->qr;
}
}
}

0 comments on commit 43be4ef

Please sign in to comment.