PEAR Manual
Prev |  | Next

# Crypt_CHAP_MSCHAPv1::response()

Crypt_CHAP_MSCHAPv1::response() -- Generates the response-packet.

## Synopsis

``string Crypt_CHAP_MSCHAPv1::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

Example 35-1. Using Crypt_CHAP_MSCHAPv1::response()
    <?php
    require_once 'Crypt/CHAP.php';

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

    ?>

Prev | Home | Next
Crypt_CHAP_MSCHAPv1::str2unicode() | Up | Crypt_CHAP_MSCHAPv2::Crypt_CHAP_MSCHAPv2()