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

Class: Crypt_CHAP_MSv2

Source Location: /Crypt_CHAP-1.5.0/CHAP.php

Class Overview

PEAR
   |
   --Crypt_CHAP
      |
      --Crypt_CHAP_MSv1
         |
         --Crypt_CHAP_MSv2

class Crypt_CHAP_MSv2


Variables

Methods


Inherited Variables

Inherited Methods

Class: Crypt_CHAP_MSv1

Crypt_CHAP_MSv1::Crypt_CHAP_MSv1()
Constructor
Crypt_CHAP_MSv1::challengeResponse()
Generates the NT-Response.
Crypt_CHAP_MSv1::lmChallengeResponse()
Generates the LAN-Manager-Response.
Crypt_CHAP_MSv1::lmPasswordHash()
Generates the LAN-Manager-HASH from the given plaintext password.
Crypt_CHAP_MSv1::ntChallengeResponse()
Generates the NT-Response.
Crypt_CHAP_MSv1::ntPasswordHash()
Generates the NT-HASH from the given plaintext password.
Crypt_CHAP_MSv1::str2unicode()
Converts ascii to unicode.

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 392]
class Crypt_CHAP_MSv2

Generate MS-CHAPv2 Packets. This version of MS-CHAP uses a 16 Bytes authenticator challenge and a 16 Bytes peer Challenge. LAN-Manager responses no longer exists in this version. The challenge is already a SHA1 challenge hash of both challenges and of the username.



[ Top ]


Class Variables

$authChallenge =  null

[line 410]

The 16 Bytes random binary authenticator challenge

Type:   string


[ Top ]

$peerChallenge =  null

[line 404]

The 16 Bytes random binary peer challenge

Type:   string


[ Top ]

$username =  null

[line 398]

The username

Type:   string


[ Top ]



Method Detail

Crypt_CHAP_MSv2 (Constructor)   [line 418]

void Crypt_CHAP_MSv2( )

Constructor

Generates the 16 Bytes peer and authentication challenge


[ Top ]

challengeHash   [line 444]

string challengeHash( )

Generates the challenge hash from the peer and the authenticator challenge and the username. SHA1 is used for this, but only the first 8 Bytes are used.
  • Access: public

[ Top ]

challengeResponse   [line 455]

string challengeResponse( )

Generates the response.
  • Access: public

Overrides Crypt_CHAP_MSv1::challengeResponse() (Generates the NT-Response.)
[ Top ]

ntPasswordHashHash   [line 432]

string ntPasswordHashHash( string $nthash)

Generates a hash from the NT-HASH.
  • Access: public

Parameters:

string   $nthash     The NT-HASH

[ Top ]


Documentation generated on Sun, 19 Sep 2010 06:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.