ArininAV

Crypt_CHAP::generateChallenge()

Crypt_CHAP::generateChallenge() -- Generates a new random challenge.

Synopsis

string Crypt_CHAP::generateChallenge ([string $varname = 'challenge' [, int $size = 8]])

Описание

This method generates a new random challenge and stores it in the given property, the default size of the challenge is 8 bytes.

Параметр

Возвращаемое значение

string - a String containing the challenge

Заметка

Эта функция не должна вызываться статически.

Пример