Crypt_CHAP_MSv1::response()

Crypt_CHAP_MSv1::response() – Generates the response-packet.

Synopsis

string Crypt_CHAP_MSv1::response ( bool $lm = false )

Description

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.

Parameter

  • bool $lm - wether including the LM-Challenge-Response

Return value

string - a String containing the paket

Note

This function can not be called statically.

Example

Using Crypt_CHAP_MSv1::response()

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

$cr = new Crypt_CHAP_MSv1();
$cr->password  'MyPw';
echo 
bin2hex($cr->response());

?>
Converts a string to unicode. (Previous) constructor (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.