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