Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: OpenID

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class Auth_OpenID_CryptUtil

Description

Located in /openid/Auth/OpenID/CryptUtil.php (line 26)

Class Auth_OpenID_CryptUtil
Method Summary
Method string getBytes (int $num_bytes)
Method string randomString (integer $length, [ $population = null], string $chrs)
Methods
getBytes (line 41)

Get the specified number of random bytes.

Attempts to use a cryptographically secure (not predictable) source of randomness if available. If there is no high-entropy randomness source available, it will fail. As a last resort, for non-critical systems, define

  1. Auth_OpenID_RAND_SOURCE
as
  1. null
, and the code will fall back on a pseudo-random number generator.

  • return: random bytes
string getBytes (int $num_bytes)
  • int $num_bytes: The length of the return value
randomString (line 81)

Produce a string of length random bytes, chosen from chrs. If $chrs is null, the resulting string may contain any characters.

  • return: A string of randomly-chosen characters from $chrs
string randomString (integer $length, [ $population = null], string $chrs)
  • integer $length: The length of the resulting randomly-generated string
  • string $chrs: A string of characters from which to choose to build the new string
  • $population

Documentation generated on Mon, 05 Mar 2007 20:55:51 +0000 by phpDocumentor 1.3.1