string Crypt_CHAP_MD5::challengeResponse (
)
このメソッドは、チャレンジ-レスポンス パケットを作成します。 md5(ID + Password + Challenge) を使用します。
string
- チャレンジ-レスポンス パケットを文字列で返します。
This function can not be called statically.
Crypt_CHAP_MD5::challengeResponse() の使用
<?php
require_once 'Crypt/CHAP.php';
$cr = new Crypt_CHAP_MD5();
$cr->password = 'MyPw';
echo bin2hex($cr->challengeResponse());
?>