From 9371d47587f4e01ec7f0d9111a166ad22af21740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 11 Aug 2021 14:13:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Jwt/Jwt.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/System/Jwt/Jwt.php b/System/Jwt/Jwt.php index e43e189b..916241ec 100644 --- a/System/Jwt/Jwt.php +++ b/System/Jwt/Jwt.php @@ -49,6 +49,8 @@ class Jwt extends Component $this->setEncrypt($jwt['encrypt'] ?? JWTConstant::AES_128_ECB); $this->setKey($jwt['key'] ?? get_called_class()); + var_dump($this->encrypt); + $defaultIv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($this->encrypt)); $this->setIv($jwt['iv'] ?? $defaultIv); }