Zend\Filter\Encrypt\Openssl
Encryption adapter for openssl
Synopsis
class Openssl
implements
EncryptionAlgorithmInterface
{
- // members
- protected array $keys;
- protected string $passphrase;
- protected array $compression;
- protected bool $package;
- // methods
- public void __construct()
- protected self _setKeys()
- public array getPublicKey()
- public self setPublicKey()
- public array getPrivateKey()
- public self setPrivateKey()
- public array getEnvelopeKey()
- public self setEnvelopeKey()
- public string getPassphrase()
- public self setPassphrase()
- public array getCompression()
- public self setCompression()
- public bool getPackage()
- public self setPackage()
- public string encrypt()
- public string decrypt()
- public string toString()
Hierarchy
Members
protected
- $compression
—
array
Internal compression -
$keys
Definitions for encryption array( 'public' => public keys 'private' => private keys 'envelope' => resulting envelope keys ) - $package
—
Zend\Filter\Encrypt\bool
Internal create package - $passphrase
—
string
Internal passphrase
Methods
protected
- _setKeys() — Sets the encryption keys
public
- __construct() — Class constructor Available options 'public' => public key 'private' => private key 'envelope' => envelope key 'passphrase' => passphrase 'compression' => compress value with this compression adapter 'package' => pack envelope keys into encrypted string, simplifies decryption
- decrypt() — Defined by Zend\Filter\FilterInterface
- encrypt() — Encrypts $value with the defined settings Note that you also need the "encrypted" keys to be able to decrypt
- getCompression() — Returns the compression
- getEnvelopeKey() — Returns all envelope keys
- getPackage() — Returns if header should be packaged
- getPassphrase() — Returns the passphrase
- getPrivateKey() — Returns all private keys
- getPublicKey() — Returns all public keys
- setCompression() — Sets an internal compression for values to encrypt
- setEnvelopeKey() — Sets envelope keys
- setPackage() — Sets if the envelope keys should be included in the encrypted value
- setPassphrase() — Sets a new passphrase
- setPrivateKey() — Sets private keys
- setPublicKey() — Sets public keys
- toString() — Returns the adapter name