PHP 클래스 Zend_Crypt_Math

상속: extends Zend_Crypt_Math_BigInteger
파일 보기 프로젝트 열기: kimai/kimai 1 사용 예제들

공개 메소드들

메소드 설명
btwoc ( string $long ) : string Get the big endian two's complement of a given big integer in binary notation
fromBinary ( string $binary ) : string Translate a binary form into a big integer string
rand ( string | integer $minimum, string | integer $maximum ) : string Generate a pseudorandom number within the given range.
randBytes ( integer $length, boolean $strong = false ) : string Return a random strings of $length bytes
randInteger ( integer $min, integer $max, boolean $strong = false ) : integer Return a random integer between $min and $max
toBinary ( string $integer ) : string Translate a big integer string into a binary form

메소드 상세

btwoc() 공개 메소드

Get the big endian two's complement of a given big integer in binary notation
public btwoc ( string $long ) : string
$long string
리턴 string

fromBinary() 공개 메소드

Translate a binary form into a big integer string
public fromBinary ( string $binary ) : string
$binary string
리턴 string

rand() 공개 메소드

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...
public rand ( string | integer $minimum, string | integer $maximum ) : string
$minimum string | integer
$maximum string | integer
리턴 string

randBytes() 공개 정적인 메소드

Return a random strings of $length bytes
public static randBytes ( integer $length, boolean $strong = false ) : string
$length integer
$strong boolean
리턴 string

randInteger() 공개 정적인 메소드

Return a random integer between $min and $max
public static randInteger ( integer $min, integer $max, boolean $strong = false ) : integer
$min integer
$max integer
$strong boolean
리턴 integer

toBinary() 공개 메소드

Translate a big integer string into a binary form
public toBinary ( string $integer ) : string
$integer string
리턴 string