PHP Class Zend_Filter_Encrypt_Mcrypt

Inheritance: implements Zend_Filter_Encrypt_Interface
Mostrar archivo Open project: kimai/kimai Class Usage Examples

Protected Properties

Property Type Description
$_compression array Internal compression
$_encryption Definitions for encryption array( 'key' => encryption key string 'algorithm' => algorithm to use 'algorithm_directory' => directory where to find the algorithm 'mode' => encryption mode to use 'modedirectory' => directory where to find the mode )
$_srandCalled

Public Methods

Method Description
__construct ( string | array | Zend_Config $options ) Class constructor
decrypt ( string $value ) : string Defined by Zend_Filter_Interface
encrypt ( string $value ) : string Defined by Zend_Filter_Interface
getCompression ( ) : array Returns the compression
getEncryption ( ) : array Returns the set encryption options
getVector ( ) : string Returns the set vector
setCompression ( string | array $compression ) : Zend_Filter_Encrypt_Mcrypt Sets a internal compression for values to encrypt
setEncryption ( string | array $options ) : Zend_Filter_File_Encryption Sets new encryption options
setVector ( string $vector = null ) : Zend_Filter_Encrypt_Mcrypt Sets the initialization vector
toString ( ) : string Returns the adapter name

Protected Methods

Method Description
_closeCipher ( resource $cipher ) : Zend_Filter_Encrypt_Mcrypt Close a cipher
_initCipher ( resource $cipher ) : resource Initialises the cipher with the set key
_openCipher ( ) : resource Open a cipher
_srand ( ) _srand() interception

Method Details

__construct() public method

Class constructor
public __construct ( string | array | Zend_Config $options )
$options string | array | Zend_Config Cryption Options

_closeCipher() protected method

Close a cipher
protected _closeCipher ( resource $cipher ) : Zend_Filter_Encrypt_Mcrypt
$cipher resource Cipher to close
return Zend_Filter_Encrypt_Mcrypt

_initCipher() protected method

Initialises the cipher with the set key
protected _initCipher ( resource $cipher ) : resource
$cipher resource
return resource

_openCipher() protected method

Open a cipher
protected _openCipher ( ) : resource
return resource Returns the opened cipher

_srand() protected method

_srand() interception
protected _srand ( )

decrypt() public method

Decrypts $value with the defined settings
public decrypt ( string $value ) : string
$value string Content to decrypt
return string The decrypted content

encrypt() public method

Encrypts $value with the defined settings
public encrypt ( string $value ) : string
$value string The content to encrypt
return string The encrypted content

getCompression() public method

Returns the compression
public getCompression ( ) : array
return array

getEncryption() public method

Returns the set encryption options
public getEncryption ( ) : array
return array

getVector() public method

Returns the set vector
public getVector ( ) : string
return string

setCompression() public method

Sets a internal compression for values to encrypt
public setCompression ( string | array $compression ) : Zend_Filter_Encrypt_Mcrypt
$compression string | array
return Zend_Filter_Encrypt_Mcrypt

setEncryption() public method

Sets new encryption options
public setEncryption ( string | array $options ) : Zend_Filter_File_Encryption
$options string | array Encryption options
return Zend_Filter_File_Encryption

setVector() public method

Sets the initialization vector
public setVector ( string $vector = null ) : Zend_Filter_Encrypt_Mcrypt
$vector string (Optional) Vector to set
return Zend_Filter_Encrypt_Mcrypt

toString() public method

Returns the adapter name
public toString ( ) : string
return string

Property Details

$_compression protected_oe property

Internal compression
protected array $_compression
return array

$_encryption protected_oe property

Definitions for encryption array( 'key' => encryption key string 'algorithm' => algorithm to use 'algorithm_directory' => directory where to find the algorithm 'mode' => encryption mode to use 'modedirectory' => directory where to find the mode )
protected $_encryption

$_srandCalled protected_oe static_oe property

protected static $_srandCalled