Crypt_CHAP_MD5::challengeResponse()

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

Synopsis

string Crypt_CHAP_MD5::challengeResponse ( )

Description

このメソッドは、チャレンジ-レスポンス パケットを作成します。 md5(ID + Password + Challenge) を使用します。

Return value

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

Note

This function can not be called statically.

Example

Crypt_CHAP_MD5::challengeResponse() の使用

<?php
require_once 'Crypt/CHAP.php';

$cr = new Crypt_CHAP_MD5();
$cr->password 'MyPw';
echo 
bin2hex($cr->challengeResponse());

?>