From dc53249596459d28e29b0d36a66feee1870d566d Mon Sep 17 00:00:00 2001 From: u2nyakim Date: Fri, 29 Aug 2025 16:18:02 +0800 Subject: [PATCH] =?UTF-8?q?up.=20=E5=8F=8C=E5=90=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Request.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Request.php b/app/Request.php index 5a937b6..04feb35 100644 --- a/app/Request.php +++ b/app/Request.php @@ -76,10 +76,10 @@ class Request extends \think\Request $key = $keyIv['key']; $iv = $keyIv['iv']; - // 添加 PKCS#7 填充 - $blockSize = 16; // AES 块大小 - $padding = $blockSize - (strlen($data) % $blockSize); - $data .= str_repeat(chr($padding), $padding); +// // 添加 PKCS#7 填充 +// $blockSize = 16; // AES 块大小 +// $padding = $blockSize - (strlen($data) % $blockSize); +// $data .= str_repeat(chr($padding), $padding); // AES-256-CBC 加密 $encrypted = openssl_encrypt(