Zend\Filter\Encrypt\BlockCipher
Encryption adapter for Zend\Crypt\BlockCipher
Synopsis
class BlockCipher
implements
EncryptionAlgorithmInterface
{
- // members
- protected array $encryption;
- protected BlockCipher $blockCipher;
- protected array $compression;
- // methods
- public void __construct()
- public array getEncryption()
- public self setEncryption()
- public string getVector()
- public self setVector()
- public self setKey()
- public string getKey()
- public array getCompression()
- public self setCompression()
- public string encrypt()
- public string decrypt()
- public string toString()
Hierarchy
Members
protected
- $blockCipher
—
Zend\Filter\Encrypt\BlockCipher
BlockCipher - $compression
—
array
Internal compression -
$encryption
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 )
Methods
public
- __construct() — Class constructor
- decrypt() — Defined by Zend\Filter\FilterInterface
- encrypt() — Defined by Zend\Filter\FilterInterface
- getCompression() — Returns the compression
- getEncryption() — Returns the set encryption options
- getKey() — Get the encryption key
- getVector() — Returns the initialization vector
- setCompression() — Sets an internal compression for values to encrypt
- setEncryption() — Sets new encryption options
- setKey() — Set the encryption key
- setVector() — Set the inizialization vector
- toString() — Returns the adapter name