Horde_Crypt_Blowfish_Base::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $cipher )
$cipher string Either 'ecb' or 'cbc'.
    public function __construct($cipher)
    {
        $this->cipher = $cipher;
    }

Usage Example

Example #1
0
 /**
  */
 public function __construct($cipher)
 {
     parent::__construct($cipher);
     $this->_mcrypt = mcrypt_module_open(MCRYPT_BLOWFISH, '', $cipher, '');
 }