Class BlockCipher

Summary

Fully Qualified Name: Zend\Filter\Encrypt\BlockCipher
Implements: EncryptionAlgorithmInterface

Description

Encryption adapter for Zend\Crypt\BlockCipher

Methods

Name Description Defined By
__construct() Class constructor BlockCipher
decrypt() Defined by Zend\Filter\FilterInterface BlockCipher
encrypt() Defined by Zend\Filter\FilterInterface BlockCipher
getCompression() Returns the compression BlockCipher
getEncryption() Returns the set encryption options BlockCipher
getKey() Get the encryption key BlockCipher
getVector() Returns the initialization vector BlockCipher
setCompression() Sets an internal compression for values to encrypt BlockCipher
setEncryption() Sets new encryption options BlockCipher
setKey() Set the encryption key BlockCipher
setVector() Set the inizialization vector BlockCipher
toString() Returns the adapter name BlockCipher

Method Details

__construct()

Class constructor

Parameter Name Type Description
$options string|array|\Traversable Encryption

Returns:

decrypt()

Defined by Zend\Filter\FilterInterface

Decrypts $value with the defined settings

Parameter Name Type Description
$value string Content

Returns: string The decrypted content

encrypt()

Defined by Zend\Filter\FilterInterface

Encrypts $value with the defined settings

Parameter Name Type Description
$value string The

Returns: string The encrypted content

getCompression()

Returns the compression

Returns: array

getEncryption()

Returns the set encryption options

Returns: array

getKey()

Get the encryption key

Returns: string

getVector()

Returns the initialization vector

Returns: string

setCompression()

Sets an internal compression for values to encrypt

Parameter Name Type Description
$compression string|array

Returns: self

setEncryption()

Sets new encryption options

Parameter Name Type Description
$options string|array Encryption

Returns: self

setKey()

Set the encryption key

Parameter Name Type Description
$key string

Returns: self

setVector()

Set the inizialization vector

Parameter Name Type Description
$vector string

Returns: self

toString()

Returns the adapter name

Returns: string

Top