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

Class: Crypt_CHAP

Source Location: /Crypt_CHAP-1.5.0/CHAP.php

Class Overview

PEAR
   |
   --Crypt_CHAP

class Crypt_CHAP


Variables

Methods


Child classes:

Crypt_CHAP_MD5
class Crypt_CHAP_MD5
Crypt_CHAP_MSv1
class Crypt_CHAP_MSv1

Inherited Variables

Inherited Methods


Class Details

[line 56]
class Crypt_CHAP

Abstract base class for CHAP



[ Top ]


Class Variables

$challenge =  null

[line 62]

Random binary challenge

Type:   string


[ Top ]

$chapid =  1

[line 80]

Id of the authentication request. Should incremented after every request.

Type:   integer


[ Top ]

$password =  null

[line 74]

User password

Type:   string


[ Top ]

$response =  null

[line 68]

Binary response

Type:   string


[ Top ]



Method Detail

Crypt_CHAP (Constructor)   [line 88]

void Crypt_CHAP( )

Constructor

Generates a random challenge


[ Top ]

challengeResponse   [line 115]

void challengeResponse( )

Generates the response. Overwrite this.

Overridden in child classes as:

Crypt_CHAP_MD5::challengeResponse()
Generates the response.
Crypt_CHAP_MSv1::challengeResponse()
Generates the NT-Response.
Crypt_CHAP_MSv2::challengeResponse()
Generates the response.

[ Top ]

generateChallenge   [line 101]

void generateChallenge( [string $varname = 'challenge'], [integer $size = 8])

Generates a random binary challenge

Parameters:

string   $varname   —  Name of the property
integer   $size   —  Size of the challenge in Bytes

[ Top ]


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