From 425f28a715dc417add8d7b65138704abecb79283 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Thu, 23 Apr 2026 23:55:51 +0300 Subject: [PATCH] Fix LegacyEncryption to use config for IV --- app/Helpers/LegacyEncryption.php | 2 +- config/intaleq.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Helpers/LegacyEncryption.php b/app/Helpers/LegacyEncryption.php index 91d62e3..952576a 100644 --- a/app/Helpers/LegacyEncryption.php +++ b/app/Helpers/LegacyEncryption.php @@ -28,7 +28,7 @@ class LegacyEncryption } $this->key = trim(file_get_contents($keyPath)); - $this->iv = env('LEGACY_IV', ''); + $this->iv = config('intaleq.legacy_iv', ''); } /** diff --git a/config/intaleq.php b/config/intaleq.php index 5796d14..9d48c96 100644 --- a/config/intaleq.php +++ b/config/intaleq.php @@ -24,7 +24,7 @@ return [ 'legacy_enc_key_path' => '/home/intaleq-api/.enckey', // IV - يقرأ من البيئة كما ذكرت - 'legacy_iv' => env('initializationVector', 'abcdefghijklmnop'), + 'legacy_iv' => env('initializationVector', ''), // Wallet Security - مفتاح الدفع 'wallet_jwt_secret' => file_exists('/home/intaleq-api/.secret_key_pay')