Moodle  2.2.1
http://www.collinsharper.com
Crypt_CHAP_MSv1 Class Reference
Inheritance diagram for Crypt_CHAP_MSv1:
Collaboration diagram for Crypt_CHAP_MSv1:

Public Member Functions

 Crypt_CHAP_MSv1 ()
 ntPasswordHash ($password=null)
 str2unicode ($str)
 challengeResponse ()
 ntChallengeResponse ()
 lmChallengeResponse ()
 _challengeResponse ($lm=false)
 lmPasswordHash ($password=null)
 _desHash ($plain)
 _desAddParity ($key)
 response ($lm=false)

Data Fields

 $flags = 1

Detailed Description

Definition at line 156 of file CHAP.php.


Member Function Documentation

_challengeResponse ( lm = false)

Generates the response.

Generates the response using DES.

Parameters:
bool$lmwether generating LAN-Manager-Response private
Returns:
string

Definition at line 251 of file CHAP.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_desAddParity ( key)

Adds the parity bit to the given DES key.

private

Parameters:
string$key7-Bytes Key without parity
Returns:
string

Definition at line 327 of file CHAP.php.

Here is the caller graph for this function:

_desHash ( plain)

Generates an irreversible HASH.

private

Returns:
string

Definition at line 308 of file CHAP.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Generates the NT-Response.

public

Returns:
string

Reimplemented from Crypt_CHAP.

Reimplemented in Crypt_CHAP_MSv2.

Definition at line 215 of file CHAP.php.

Here is the call graph for this function:

Constructor

Loads the mhash extension

Returns:
void

Definition at line 171 of file CHAP.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Generates the LAN-Manager-Response.

public

Returns:
string

Definition at line 237 of file CHAP.php.

Here is the call graph for this function:

Here is the caller graph for this function:

lmPasswordHash ( password = null)

Generates the LAN-Manager-HASH from the given plaintext password.

public

Returns:
string

Definition at line 290 of file CHAP.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Generates the NT-Response.

public

Returns:
string

Definition at line 226 of file CHAP.php.

Here is the call graph for this function:

Here is the caller graph for this function:

ntPasswordHash ( password = null)

Generates the NT-HASH from the given plaintext password.

public

Returns:
string

Definition at line 183 of file CHAP.php.

Here is the call graph for this function:

Here is the caller graph for this function:

response ( lm = false)

Generates the response-packet.

Parameters:
bool$lmwether including LAN-Manager-Response private
Returns:
string

Definition at line 369 of file CHAP.php.

Here is the call graph for this function:

str2unicode ( str)

Converts ascii to unicode.

public

Returns:
string

Definition at line 198 of file CHAP.php.

Here is the caller graph for this function:


Field Documentation

$flags = 1

Definition at line 163 of file CHAP.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations