From 1d40c76809d4b177519e4cc6a2ac60eb37bb2a37 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Wed, 13 Apr 2022 19:24:48 -0400 Subject: [PATCH] fix --- app/Controllers/Savvy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Controllers/Savvy.php b/app/Controllers/Savvy.php index f61285c..f401506 100644 --- a/app/Controllers/Savvy.php +++ b/app/Controllers/Savvy.php @@ -130,7 +130,10 @@ class Savvy extends BaseController $this->logArray($inx); // Decrypt the input if (isset($inx['encrypted_payload'])) { + log_message('critical', "API-WAS DECRYPT STARTED=>".$endpoint ); $payload = openssl_decrypt(hex2bin($inx['encrypted_payload']), $encryptionAlg, $encryptionKey, OPENSSL_RAW_DATA, $encryptionIV); + log_message('critical', "API-WAS DECRYPT END=>".$endpoint ); + unset($inx['encrypted_payload']); $inx = array_merge($in, json_decode($payload, true)); }