PHP Класс Zend_Filter_Encrypt_Mcrypt

Наследование: implements Zend_Filter_Encrypt_Interface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
_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

Описание методов

__construct() публичный Метод

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

_closeCipher() защищенный Метод

Close a cipher
protected _closeCipher ( resource $cipher ) : Zend_Filter_Encrypt_Mcrypt
$cipher resource Cipher to close
Результат Zend_Filter_Encrypt_Mcrypt

_initCipher() защищенный Метод

Initialises the cipher with the set key
protected _initCipher ( resource $cipher ) : resource
$cipher resource
Результат resource

_openCipher() защищенный Метод

Open a cipher
protected _openCipher ( ) : resource
Результат resource Returns the opened cipher

_srand() защищенный Метод

_srand() interception
protected _srand ( )

decrypt() публичный Метод

Decrypts $value with the defined settings
public decrypt ( string $value ) : string
$value string Content to decrypt
Результат string The decrypted content

encrypt() публичный Метод

Encrypts $value with the defined settings
public encrypt ( string $value ) : string
$value string The content to encrypt
Результат string The encrypted content

getCompression() публичный Метод

Returns the compression
public getCompression ( ) : array
Результат array

getEncryption() публичный Метод

Returns the set encryption options
public getEncryption ( ) : array
Результат array

getVector() публичный Метод

Returns the set vector
public getVector ( ) : string
Результат string

setCompression() публичный Метод

Sets a internal compression for values to encrypt
public setCompression ( string | array $compression ) : Zend_Filter_Encrypt_Mcrypt
$compression string | array
Результат Zend_Filter_Encrypt_Mcrypt

setEncryption() публичный Метод

Sets new encryption options
public setEncryption ( string | array $options ) : Zend_Filter_File_Encryption
$options string | array Encryption options
Результат Zend_Filter_File_Encryption

setVector() публичный Метод

Sets the initialization vector
public setVector ( string $vector = null ) : Zend_Filter_Encrypt_Mcrypt
$vector string (Optional) Vector to set
Результат Zend_Filter_Encrypt_Mcrypt

toString() публичный Метод

Returns the adapter name
public toString ( ) : string
Результат string

Описание свойств

$_compression защищенное свойство

Internal compression
protected array $_compression
Результат array

$_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 )
protected $_encryption

$_srandCalled защищенное статическое свойство

protected static $_srandCalled