Public Member Functions

Zend_Crypt_Math Class Reference

Inheritance diagram for Zend_Crypt_Math:
Zend_Crypt_Math_BigInteger

Public Member Functions

 rand ($minimum, $maximum)
 btwoc ($long)
 fromBinary ($binary)
 toBinary ($integer)

Detailed Description

Definition at line 34 of file Math.php.


Member Function Documentation

btwoc ( long )

Get the big endian two's complement of a given big integer in binary notation

Parameters:
string$long
Returns:
string

Definition at line 74 of file Math.php.

fromBinary ( binary )

Translate a binary form into a big integer string

Parameters:
string$binary
Returns:
string

Definition at line 87 of file Math.php.

rand ( minimum,
maximum 
)

Generate a pseudorandom number within the given range. Will attempt to read from a systems RNG if it exists or else utilises a simple random character to maximum length process. Simplicity is a factor better left for development...

Parameters:
string | int$minimum
string | int$maximum
Returns:
string

Definition at line 47 of file Math.php.

toBinary ( integer )

Translate a big integer string into a binary form

Parameters:
string$integer
Returns:
string

Definition at line 97 of file Math.php.


The documentation for this class was generated from the following file: