Crypt_CHAP::generateChallenge()

Crypt_CHAP::generateChallenge()

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

Description

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

Parameter

  • string $varname - name of the property for storing the challenge

  • int $size - the size of the challenge

Return value

string - a String containing the challenge

Note

This function can not be called statically.

© Copyright 2003-2014 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.