448. Class

448.1. Zend\Filter\Encrypt\BlockCipher

Encryption adapter for ZendCryptBlockCipher

448.1.1. Methods

448.1.1.1. __construct

__construct()

Class constructor

Parameters:string|array|Traversable – Encryption Options
Throws ExceptionRuntimeException:
 
Throws ExceptionInvalidArgumentException:
 

448.1.1.2. getEncryption

getEncryption()

Returns the set encryption options

Return type:array

448.1.1.3. setEncryption

setEncryption()

Sets new encryption options

Parameters:string|array – Encryption options
Return type:BlockCipher
Throws :ExceptionInvalidArgumentException

448.1.1.4. getVector

getVector()

Returns the initialization vector

Return type:string

448.1.1.5. setVector

setVector()

Set the inizialization vector

Parameters:string
Return type:BlockCipher
Throws :ExceptionInvalidArgumentException

448.1.1.6. setKey

setKey()

Set the encryption key

Parameters:string
Return type:BlockCipher
Throws :ExceptionInvalidArgumentException

448.1.1.7. getKey

getKey()

Get the encryption key

Return type:string

448.1.1.8. getCompression

getCompression()

Returns the compression

Return type:array

448.1.1.9. setCompression

setCompression()

Sets a internal compression for values to encrypt

Parameters:string|array
Return type:BlockCipher

448.1.1.10. encrypt

encrypt()

Defined by ZendFilterFilterInterface

Encrypts $value with the defined settings

Parameters:string – The content to encrypt
Throws ExceptionInvalidArgumentException:
 
Return type:string The encrypted content

448.1.1.11. decrypt

decrypt()

Defined by ZendFilterFilterInterface

Decrypts $value with the defined settings

Parameters:string – Content to decrypt
Return type:string The decrypted content

448.1.1.12. toString

toString()

Returns the adapter name

Return type:string