Update: 2026-06-16 02:14:34
This commit is contained in:
@@ -101,6 +101,11 @@ class EncryptionHelper {
|
||||
|
||||
public function decryptBinary($data) {
|
||||
$decrypted = openssl_decrypt($data, 'AES-256-CBC', $this->key, OPENSSL_RAW_DATA, $this->iv);
|
||||
// CRIT-07 FIX: التحقق من فشل openssl_decrypt
|
||||
if ($decrypted === false) {
|
||||
error_log('[CRIT-07] openssl_decrypt failed in decryptBinary');
|
||||
throw new Exception('Decryption failed');
|
||||
}
|
||||
return $decrypted;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user