PHP8.1 Syntax/Functionality Changes & Deprecations List Check

This commit is contained in:
kjh
2022-05-24 08:44:52 +00:00
parent 0b90f9d631
commit 0edbdab1d8
3 changed files with 10 additions and 10 deletions

View File

@ -66,7 +66,7 @@ class ntlm_sasl_client_class
public function NTLMResponse($challenge, $password)
{
$unicode = $this->ASCIIToUnicode($password);
$md4 = mhash(MHASH_MD4, $unicode);
$md4 = hash('md4', $unicode, true);
$padded = $md4 . str_repeat(chr(0), 21 - strlen($md4));
$iv_size = mcrypt_get_iv_size(MCRYPT_DES, MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);