API Documentation

Zend/Crypt/Math.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Crypt  
Subpackage
Math  
Version
$Id: Math.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Crypt_Math

Package: Zend\Crypt

Parent(s)
\Zend_Crypt_Math_BigInteger
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublicbtwoc( string $long ) : string

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

Parameters
Name Type Description
$long string
Returns
Type Description
string
methodpublicfromBinary( string $binary ) : string

Translate a binary form into a big integer string

Parameters
Name Type Description
$binary string
Returns
Type Description
string
methodpublicrand( 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...

Parameters
Name Type Description
$minimum string|int
$maximum string|int
Returns
Type Description
string
methodpublictoBinary( string $integer ) : string

Translate a big integer string into a binary form

Parameters
Name Type Description
$integer string
Returns
Type Description
string
Documentation was generated by DocBlox 0.15.1.