Encryption adapter for Zend\Crypt\BlockCipher

 Methods

Class constructor

__construct(string | array | \Traversable $options) 

Parameters

$options

stringarray\Traversable

Encryption Options

Exceptions

\Zend\Filter\Exception\RuntimeException
\Zend\Filter\Exception\InvalidArgumentException

Defined by Zend\Filter\FilterInterface

decrypt(string $value) : string

Decrypts $value with the defined settings

Parameters

$value

string

Content to decrypt

Returns

stringThe decrypted content

Defined by Zend\Filter\FilterInterface

encrypt(string $value) : string

Encrypts $value with the defined settings

Parameters

$value

string

The content to encrypt

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

stringThe encrypted content

Returns the compression

getCompression() : array

Returns

array

Returns the set encryption options

getEncryption() : array

Returns

array

Get the encryption key

getKey() : string

Returns

string

Returns the initialization vector

getVector() : string

Returns

string

Sets a internal compression for values to encrypt

setCompression(string | array $compression) : \Zend\Filter\Encrypt\self

Parameters

$compression

stringarray

Returns

\Zend\Filter\Encrypt\self

Sets new encryption options

setEncryption(string | array $options) : \Zend\Filter\Encrypt\self

Parameters

$options

stringarray

Encryption options

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\Encrypt\self

Set the encryption key

setKey(string $key) : \Zend\Filter\Encrypt\self

Parameters

$key

string

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\Encrypt\self

Set the inizialization vector

setVector(string $vector) : \Zend\Filter\Encrypt\self

Parameters

$vector

string

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\Encrypt\self

Returns the adapter name

toString() : string

Returns

string

 Properties

 

BlockCipher

$blockCipher : \Zend\Filter\Encrypt\BlockCipher

 

Internal compression

$compression : array

 

Definitions for encryption array( 'key' => encryption key string 'key_iteration' => the number of iterations for the PBKDF2 key generation 'algorithm => cipher algorithm to use 'hash' => algorithm to use for the authentication 'vector' => initialization vector )

$encryption