From 8f6e7eb157024c7da45632b5dca56239a8c44e4b Mon Sep 17 00:00:00 2001 From: Filip Mikulic Date: Mon, 6 Nov 2023 16:29:49 +0100 Subject: [PATCH] remove hardcoded aes key --- src/Gamebay/RKSV/Services/ReceiptSigner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gamebay/RKSV/Services/ReceiptSigner.php b/src/Gamebay/RKSV/Services/ReceiptSigner.php index 050e0e5..1bd4119 100644 --- a/src/Gamebay/RKSV/Services/ReceiptSigner.php +++ b/src/Gamebay/RKSV/Services/ReceiptSigner.php @@ -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); @@ -212,4 +212,4 @@ public function getQR(): ?string { return $this->qr; } -} \ No newline at end of file +}