API Documentation

Crypt/Math.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Crypt
subpackage
Math
version
$Id: Math.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Crypt_Math

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Crypt_Math

Extends from
Zend_Crypt_Math_BigInteger
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Crypt
Methods
rand
btwoc
fromBinary
toBinary

Description

Methods

btwoc

btwoc( string $long ) : string

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

Arguments
$long
string
Output
string
Details
visibility
public
final
false
static
false

fromBinary

fromBinary( string $binary ) : string

Translate a binary form into a big integer string

Arguments
$binary
string
Output
string
Details
visibility
public
final
false
static
false

rand

rand( string|int $minimum, string|int $maximum ) : string

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

Arguments
$minimum
stringint
$maximum
stringint
Output
string
Details
visibility
public
final
false
static
false

toBinary

toBinary( string $integer ) : string

Translate a big integer string into a binary form

Arguments
$integer
string
Output
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.