\Horde_Crypt_Blowfish_Php_Ecb

PHP implementation of the Blowfish algorithm in ECB mode.

Summary

Methods
Properties
Constants
__construct()
encrypt()
decrypt()
$md5
No constants found
_binxor()
_encipher()
_decipher()
$_P
$_S
N/A
No private methods found
No private properties found
N/A

Properties

$md5

$md5 : string

MD5 sum of the key used.

Type

string

$_P

$_P : array

P-Array contains 18 32-bit subkeys.

Type

array

$_S

$_S : array

Array of four S-Blocks each containing 256 32-bit entries.

Type

array

Methods

__construct()

__construct(string  $key) 

Constructor.

Parameters

string $key

Encrpytion key.

encrypt()

encrypt(  $text,   $iv) 

Parameters

$text
$iv

decrypt()

decrypt(  $text,   $iv) 

Parameters

$text
$iv

_binxor()

_binxor(integer|float  $l, integer|float  $r) : float

Workaround for XOR on certain systems.

Parameters

integer|float $l
integer|float $r

Returns

float

_encipher()

_encipher(  $Xl,   $Xr) 

Enciphers a single 64-bit block.

Parameters

$Xl
$Xr

_decipher()

_decipher(  $Xl,   $Xr) 

Deciphers a single 64-bit block.

Parameters

$Xl
$Xr