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)); }