Auth_OpenID_CryptUtil
Description
Located in /openid/Auth/OpenID/CryptUtil.php (line 26)
Auth_OpenID_CryptUtil
Method Summary
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
- Auth_OpenID_RAND_SOURCE
- null
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.
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