改名
This commit is contained in:
+5
-4
@@ -49,10 +49,11 @@ 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);
|
||||
$length = openssl_cipher_iv_length($this->encrypt);
|
||||
if ($length > 0) {
|
||||
$defaultIv = openssl_random_pseudo_bytes($length);
|
||||
$this->setIv($jwt['iv'] ?? $defaultIv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user