Crypt_CHAP_MSv2::challengeHash()

Crypt_CHAP_MSv2::challengeHash() – Generates the Challenge-Hash.

Synopsis

string Crypt_CHAP_MSv2::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_MSv2::challengeHash()

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

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

?>
constructor (Previous) Generates an MD4 Hash from the NT-Hash. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.