*fix - psm_password_decrypt function - BUG: HTTP2 Authentification Bug #706 - see https://github.com/phpservermon/phpservermon/issues/706
parent
676e80d42f
commit
5abee68ee8
|
@ -893,15 +893,12 @@ namespace {
|
||||||
$cipher = "AES-256-CBC";
|
$cipher = "AES-256-CBC";
|
||||||
$ivlen = openssl_cipher_iv_length($cipher);
|
$ivlen = openssl_cipher_iv_length($cipher);
|
||||||
$iv = substr($data, 0, $ivlen);
|
$iv = substr($data, 0, $ivlen);
|
||||||
$decrypted = rtrim(
|
$decrypted = openssl_decrypt(
|
||||||
openssl_decrypt(
|
substr($data, $ivlen),
|
||||||
base64_encode(substr($data, $ivlen)),
|
|
||||||
$cipher,
|
$cipher,
|
||||||
hash('sha256', $key, true),
|
hash('sha256', $key, true),
|
||||||
OPENSSL_ZERO_PADDING,
|
OPENSSL_RAW_DATA,
|
||||||
$iv
|
$iv
|
||||||
),
|
|
||||||
"\0"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return $decrypted;
|
return $decrypted;
|
||||||
|
|
Loading…
Reference in New Issue