string Crypt_CHAP_MSv1::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.
bool $lm
- wether including the LM-Challenge-Response
string
- a String containing the paket
This function can not be called statically.
Using Crypt_CHAP_MSv1::response()
<?php
require_once 'Crypt/CHAP.php';
$cr = new Crypt_CHAP_MSv1();
$cr->password = 'MyPw';
echo bin2hex($cr->response());
?>