PHP 클래스 Zend_Filter_Encrypt_Mcrypt

상속: implements Zend_Filter_Encrypt_Interface
파일 보기 프로젝트 열기: kimai/kimai 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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