PHP Class Zend_Filter_Encrypt_Mcrypt

Inheritance: implements Zend_Filter_Encrypt_Interface
Afficher le fichier Open project: kimai/kimai Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

_closeCipher() protected méthode

Close a cipher
protected _closeCipher ( resource $cipher ) : Zend_Filter_Encrypt_Mcrypt
$cipher resource Cipher to close
Résultat Zend_Filter_Encrypt_Mcrypt

_initCipher() protected méthode

Initialises the cipher with the set key
protected _initCipher ( resource $cipher ) : resource
$cipher resource
Résultat resource

_openCipher() protected méthode

Open a cipher
protected _openCipher ( ) : resource
Résultat resource Returns the opened cipher

_srand() protected méthode

_srand() interception
protected _srand ( )

decrypt() public méthode

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

encrypt() public méthode

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

getCompression() public méthode

Returns the compression
public getCompression ( ) : array
Résultat array

getEncryption() public méthode

Returns the set encryption options
public getEncryption ( ) : array
Résultat array

getVector() public méthode

Returns the set vector
public getVector ( ) : string
Résultat string

setCompression() public méthode

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

setEncryption() public méthode

Sets new encryption options
public setEncryption ( string | array $options ) : Zend_Filter_File_Encryption
$options string | array Encryption options
Résultat Zend_Filter_File_Encryption

setVector() public méthode

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

toString() public méthode

Returns the adapter name
public toString ( ) : string
Résultat string

Property Details

$_compression protected_oe property

Internal compression
protected array $_compression
Résultat 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