Crypt_CHAP_MSCHAPv1::challengeResponse()
Crypt_CHAP_MSCHAPv1::challengeResponse() -- Generates the Challenge-Response paket.
概要
string Crypt_CHAP_MSCHAPv1::challengeResponse ()
説明
This method generates the Challenge-Response paket.
返り値
string - a String containing the challenge-response paket
注意
この関数は、スタティックにコールする
ことはできません。
例
例 35-1Using Crypt_CHAP_MSCHAPv1::challengeResponse()
<?php
require_once 'Crypt/CHAP.php';
$cr = new Crypt_CHAP_MSCHAPv1();
$cr->chapid = 1;
$cr->password = 'MyPw';
echo bin2hex($cr->challengeResponse());
?>
|
|