Encryption adapter for openssl
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
| Parameters: | string|array|Traversable – Options for this adapter |
|---|---|
| Throws ExceptionExtensionNotLoadedException: | |
Sets the encryption keys
| Parameters: | string|array – Key with type association |
|---|---|
| Return type: | Openssl |
| Throws : | ExceptionInvalidArgumentException |
Sets public keys
| Parameters: | string|array – Public keys |
|---|---|
| Return type: | ZendFilterEncryptOpenssl |
Sets private keys
| Parameters: |
|
|---|---|
| Return type: | Openssl |
Sets envelope keys
| Parameters: | string|array – Envelope keys |
|---|---|
| Return type: | ZendFilterEncryptOpenssl |
Sets a new passphrase
| Parameters: | string – |
|---|---|
| Return type: | Openssl |
Sets a internal compression for values to encrypt
| Parameters: | string|array – |
|---|---|
| Return type: | Openssl |
Sets if the envelope keys should be included in the encrypted value
| Parameters: | bool – |
|---|---|
| Return type: | Openssl |
Encrypts $value with the defined settings Note that you also need the “encrypted” keys to be able to decrypt
| Parameters: | string – Content to encrypt |
|---|---|
| Return type: | string The encrypted content |
| Throws : | ExceptionRuntimeException |
Defined by ZendFilterFilterInterface
Decrypts $value with the defined settings
| Parameters: | string – Content to decrypt |
|---|---|
| Return type: | string The decrypted content |
| Throws : | ExceptionRuntimeException |