PHP Class Dcrypt\Support

Datei anzeigen Open project: dopecode/dcrypt

Protected Methods

Method Description
bin2dec ( string $bin ) : string Reverses dec2bin
dec2bin ( integer $dec ) : string Turns an integer into a 4 byte binary representation
hex2bin ( string $hexstr ) : string An internal hex2bin implementation for PHP 5.3

Method Details

bin2dec() protected static method

Reverses dec2bin
protected static bin2dec ( string $bin ) : string
$bin string Binary string to convert to decimal
return string

dec2bin() protected static method

Turns an integer into a 4 byte binary representation
protected static dec2bin ( integer $dec ) : string
$dec integer Integer to convert to binary
return string

hex2bin() protected static method

An internal hex2bin implementation for PHP 5.3
protected static hex2bin ( string $hexstr ) : string
$hexstr string
return string