Class Zend_Crypt_Math

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Crypt/Math.php (line 34)

Zend_Crypt_Math_BigInteger
   |
   --Zend_Crypt_Math
Method Summary
 string btwoc (string $long)
 string fromBinary (string $binary)
 string rand (string|int $minimum, string|int $maximum)
 string toBinary (string $integer)
Variables
Methods
btwoc (line 74)

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

  • access: public
string btwoc (string $long)
  • string $long
fromBinary (line 87)

Translate a binary form into a big integer string

  • access: public
string fromBinary (string $binary)
  • string $binary
rand (line 47)

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...

  • access: public
string rand (string|int $minimum, string|int $maximum)
  • string|int $minimum
  • string|int $maximum
toBinary (line 97)

Translate a big integer string into a binary form

  • access: public
string toBinary (string $integer)
  • string $integer

Inherited Methods

Inherited From Zend_Crypt_Math_BigInteger

 Zend_Crypt_Math_BigInteger::__construct()
 Zend_Crypt_Math_BigInteger::_loadAdapter()
 Zend_Crypt_Math_BigInteger::__call()

Documentation generated on Mon, 21 Jun 2010 15:32:37 -0400 by phpDocumentor 1.4.3