From 1bf9d73195390b31e9b0727df8c336690a35defa Mon Sep 17 00:00:00 2001 From: runstp Date: Tue, 19 May 2020 14:22:45 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20fix=20#63=20=E5=88=A0=E9=99=A4openssl?= =?UTF-8?q?=5Ferror=5Fstring=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MiniProgram/Encryptor.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/MiniProgram/Encryptor.php b/src/MiniProgram/Encryptor.php index 8a29742..e135367 100644 --- a/src/MiniProgram/Encryptor.php +++ b/src/MiniProgram/Encryptor.php @@ -19,10 +19,6 @@ public function decryptData(string $sessionKey, string $iv, string $encryptedDat { $jsonString = openssl_decrypt(base64_decode($encryptedData), "aes-128-cbc", base64_decode($sessionKey), OPENSSL_RAW_DATA, base64_decode($iv)); - if (openssl_error_string() !== false) { - throw new EncryptorError(openssl_error_string()); - } - $decryptData = json_decode($jsonString, true); if (!$decryptData) {