Crypt_CHAP_MSCHAPv1::challengeResponse()

Crypt_CHAP_MSCHAPv1::challengeResponse() – チャレンジ-レスポンス パケットを作成する

Synopsis

string Crypt_CHAP_MSCHAPv1::challengeResponse ( )

Description

このメソッドは、チャレンジ-レスポンス パケットを作成します。

Return value

string - チャレンジ-レスポンス パケットを文字列で返します。

Note

This function can not be called statically.

Example

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());

?>