string Crypt_CHAP_MSCHAPv2::challengeHash (
)
このメソッドは、(SHA1) チャレンジ-ハッシュを作成します。 このハッシュには、認証符号やピアチャレンジ、そしてユーザ名が含まれます。
string
- チャレンジ-ハッシュを文字列で返します。
This function can not be called statically.
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());
?>