Crypt_CHAP_MSCHAPv2::Crypt_CHAP_MSCHAPv2() Crypt_CHAP_MSCHAPv2::ntPasswordHashHash()

Crypt_CHAP

PEAR Manual


Crypt_CHAP_MSCHAPv2::challengeHash()

Crypt_CHAP_MSCHAPv2::challengeHash() -- Generates the Challenge-Hash.

Synopsis

string Crypt_CHAP_MSCHAPv2::challengeHash ( )

Description

This method generates the (SHA1) Challenge-Hash containing the authenticator and the peer challenge and the username.

Return value

string - a String containing the Challenge-Hash

Note

This function can not be called statically.

Example

Using Crypt_CHAP_MSCHAPv2::challengeHash()

   
<?php
require_once 'Crypt/CHAP.php';

$cr = new Crypt_CHAP_MSCHAPv2();
$cr->username 'billy';
$cr->peerChallenge $peerChallenge;
$cr->authChallenge $authChallenge;
echo 
bin2hex($cr->challengeHash());

?>


Crypt_CHAP_MSCHAPv2::Crypt_CHAP_MSCHAPv2() Crypt_CHAP_MSCHAPv2::ntPasswordHashHash()

Crypt_CHAP

PEAR Manual