Crypt_CHAP
[ class tree: Crypt_CHAP ] [ index: Crypt_CHAP ] [ all elements ]

Class: Crypt_CHAP_MSv1

Source Location: /Crypt_CHAP-1.5.0/CHAP.php

Class Overview

PEAR
   |
   --Crypt_CHAP
      |
      --Crypt_CHAP_MSv1

class Crypt_CHAP_MSv1


Variables

Methods


Child classes:

Crypt_CHAP_MSv2
class Crypt_CHAP_MSv2

Inherited Variables

Inherited Methods

Class: Crypt_CHAP

Crypt_CHAP::Crypt_CHAP()
Constructor
Crypt_CHAP::challengeResponse()
Generates the response. Overwrite this.
Crypt_CHAP::generateChallenge()
Generates a random binary challenge

Class Details

[line 155]
class Crypt_CHAP_MSv1

Generate MS-CHAPv1 Packets. MS-CHAP doesen't use the plaintext password, it uses the NT-HASH wich is stored in the SAM-Database or in the smbpasswd, if you are using samba. The NT-HASH is MD4(str2unicode(plaintextpass)). You need the hash extension for this class.



[ Top ]


Class Variables

$flags =  1

[line 162]

Wether using deprecated LM-Responses or not.

  1. = use LM-Response, 1 = use NT-Response


Type:   bool


[ Top ]



Method Detail

Crypt_CHAP_MSv1 (Constructor)   [line 170]

void Crypt_CHAP_MSv1( )

Constructor

Loads the hash extension


[ Top ]

challengeResponse   [line 214]

string challengeResponse( )

Generates the NT-Response.
  • Access: public

Overridden in child classes as:

Crypt_CHAP_MSv2::challengeResponse()
Generates the response.

Overrides Crypt_CHAP::challengeResponse() (Generates the response. Overwrite this.)
[ Top ]

lmChallengeResponse   [line 236]

string lmChallengeResponse( )

Generates the LAN-Manager-Response.
  • Access: public

[ Top ]

lmPasswordHash   [line 289]

string lmPasswordHash( [ $password = null])

Generates the LAN-Manager-HASH from the given plaintext password.
  • Access: public

Parameters:

   $password   — 

[ Top ]

ntChallengeResponse   [line 225]

string ntChallengeResponse( )

Generates the NT-Response.
  • Access: public

[ Top ]

ntPasswordHash   [line 182]

string ntPasswordHash( [ $password = null])

Generates the NT-HASH from the given plaintext password.
  • Access: public

Parameters:

   $password   — 

[ Top ]

str2unicode   [line 197]

string str2unicode( $str)

Converts ascii to unicode.
  • Access: public

Parameters:

   $str   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:04 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.