Class BlockCipher

Summary

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

Description

Encryption adapter for Laminas\Crypt\BlockCipher

Methods

Name Description Defined By
__construct() Class constructor BlockCipher
decrypt() Defined by Laminas\Filter\FilterInterface BlockCipher
encrypt() Defined by Laminas\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 Laminas\Filter\FilterInterface

Decrypts $value with the defined settings

Parameter Name Type Description
$value string Content

Returns: string The decrypted content

encrypt()

Defined by Laminas\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