Crypt_CHAP_MSCHAPv2::challengeHash()
Crypt_CHAP_MSCHAPv2::challengeHash() -- Generates the Challenge-Hash.
概要
string Crypt_CHAP_MSCHAPv2::challengeHash ()
説明
This method generates the (SHA1) Challenge-Hash containing the authenticator and the peer
challenge and the username.
返り値
string - a String containing the Challenge-Hash
注意
この関数は、スタティックにコールする
ことはできません。
例
例 35-1Using 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());
?>
|
|