Fix LegacyEncryption to use config for IV
This commit is contained in:
@@ -28,7 +28,7 @@ class LegacyEncryption
|
||||
}
|
||||
|
||||
$this->key = trim(file_get_contents($keyPath));
|
||||
$this->iv = env('LEGACY_IV', '');
|
||||
$this->iv = config('intaleq.legacy_iv', '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user