Decrypts a given string

package Default
inherited_from \Zend\Filter\Encrypt

 Methods

Calls adapter methods

__call(string $method, string|array $options) : mixed
Inherited

Parameters

$method

string

Method to call

$options

stringarray

Options for this method

Exceptions

\Zend\Filter\Exception\BadMethodCallException

Returns

mixed

Class constructor

__construct(string|array|\Traversable $options = null
Inherited

Parameters

$options

stringarray\Traversable

(Optional) Options to set, if null mcrypt is used

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to \filter()

Parameters

$value

mixed

Exceptions

\Zend\Filter\Exception\ExceptionInterface If filtering $value is impossible

Returns

mixed

Defined by Zend\Filter\Filter

filter(string $value) : string

Decrypts the content $value with the defined settings

inherited_from \Zend\Filter\Encrypt::filter()

Parameters

$value

string

Content to decrypt

Returns

stringThe decrypted content

Defined by Zend\Filter\Filter

filter(string $value) : string
Inherited

Encrypts the content $value with the defined settings

Parameters

$value

string

Content to encrypt

Returns

stringThe encrypted content

Returns the name of the set adapter

getAdapter() : string
Inherited

Returns

string

Returns the adapter instance

getAdapterInstance() : \Zend\Filter\Encrypt\EncryptionAlgorithmInterface
Inherited

Exceptions

\Zend\Filter\Exception\RuntimeException
\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\Encrypt\EncryptionAlgorithmInterface

Retrieve options representing object state

getOptions() : array
Inherited

Returns

array

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : boolean
InheritedStatic
deprecated Since 2.1.0

Returns

boolean

Sets new encryption options

setAdapter(string|array $options = null) : \Zend\Filter\Decrypt
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$options

stringarray

(Optional) Encryption options

Exceptions

\Zend\Filter\Exception\DomainException
\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\Decrypt

setOptions()

setOptions(array|\Traversable $options) : \Zend\Filter\Decrypt
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\Decrypt

isOptions()

isOptions(mixed $options) : boolean
InheritedStatic

Parameters

$options

mixed

Returns

boolean

 Properties

 

Encryption adapter

$adapter 

Default

param
 

Filter options

$options : array

Default

array()