691. Class

691.1. Zend\Filter\Encrypt

Encrypts a given string

691.1.1. Methods

691.1.1.1. __construct

__construct()

Class constructor

Parameters:string|array|Traversable – (Optional) Options to set, if null mcrypt is used

691.1.1.2. getAdapter

getAdapter()

Returns the name of the set adapter

Return type:string

691.1.1.3. setAdapter

setAdapter()

Sets new encryption options

Parameters:string|array – (Optional) Encryption options
Return type:Encrypt
Throws :ExceptionDomainException
Throws :ExceptionInvalidArgumentException

691.1.1.4. __call

__call()

Calls adapter methods

Parameters:
  • string – Method to call
  • string|array – Options for this method
Return type:

mixed

Throws :

ExceptionBadMethodCallException

691.1.1.5. filter

filter()

Defined by ZendFilterFilter

Encrypts the content $value with the defined settings

Parameters:string – Content to encrypt
Return type:string The encrypted content

Project Versions

Table Of Contents

Previous topic

690. Class

Next topic

692. Class

This Page