lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
protected function createLMPassword($password, $challenge)
    {
        // FIRST PART
        $password = $this->createByte(strtoupper($password), 14, false);
        list($key1, $key2) = str_split($password, 7);

        $desKey1 = $this->createDesKey($key1);
        $desKey2 = $this->createDesKey($key2);

        $constantDecrypt = $this->createByte($this->desEncrypt(self::DESCONST, $desKey1).$this->desEncrypt(self::DESCONST, $desKey2), 21, false);

        // SECOND PART
        list($key1, $key2, $key3) = str_split($constantDecrypt, 7);

        $desKey1 = $this->createDesKey($key1);
        $desKey2 = $this->createDesKey($key2);
        $desKey3 = $this->createDesKey($key3);

        return $this->desEncrypt($challenge, $desKey1).$this->desEncrypt($challenge, $desKey2).$this->desEncrypt($challenge, $desKey3);
    }
protected function createLMPassword($password, $challenge)
    {
        // FIRST PART
        $password = $this->createByte(strtoupper($password), 14, false);
        list($key1, $key2) = str_split($password, 7);

        $desKey1 = $this->createDesKey($key1);
        $desKey2 = $this->createDesKey($key2);

        $constantDecrypt = $this->createByte($this->desEncrypt(self::DESCONST, $desKey1).$this->desEncrypt(self::DESCONST, $desKey2), 21, false);

        // SECOND PART
        list($key1, $key2, $key3) = str_split($constantDecrypt, 7);

        $desKey1 = $this->createDesKey($key1);
        $desKey2 = $this->createDesKey($key2);
        $desKey3 = $this->createDesKey($key3);

        return $this->desEncrypt($challenge, $desKey1).$this->desEncrypt($challenge, $desKey2).$this->desEncrypt($challenge, $desKey3);
    }
protected function createLMPassword ( $ password , $ challenge ) { // FIRST PART $ password = $ this -> createByte ( strtoupper ( $ password ) , 14 , false ) ; list ( $ key1 , $ key2 ) = str_split ( $ password , 7 ) ; $ desKey1 = $ this -> createDesKey ( $ key1 ) ; $ desKey2 = $ this -> createDesKey ( $ key2 ) ; $ constantDecrypt = $ this -> createByte ( $ this -> desEncrypt ( self :: DESCONST , $ desKey1 ) . $ this -> desEncrypt ( self :: DESCONST , $ desKey2 ) , 21 , false ) ; // SECOND PART list ( $ key1 , $ key2 , $ key3 ) = str_split ( $ constantDecrypt , 7 ) ; $ desKey1 = $ this -> createDesKey ( $ key1 ) ; $ desKey2 = $ this -> createDesKey ( $ key2 ) ; $ desKey3 = $ this -> createDesKey ( $ key3 ) ; return $ this -> desEncrypt ( $ challenge , $ desKey1 ) . $ this -> desEncrypt ( $ challenge , $ desKey2 ) . $ this -> desEncrypt ( $ challenge , $ desKey3 ) ; }
Create LMv1 response.

@param string $password
@param string $challenge

@return string
Create LMv1 response .