Documentation

Encryption implements Encryption

Interfaces, Classes and Traits

Encryption

Table of Contents

$adapter  : object
Store the adapter object.
__construct()  : mixed
__construct.
decrypt()  : mixed
Decrypt the message.
encrypt()  : mixed
Encrypt the message.
setAdapter()  : object
Set the adapter.

Properties

$adapter

Store the adapter object.

private object $adapter = null
Tags
since
1.0.0

Methods

__construct()

__construct.

public __construct([mixed $adapter = null ]) : mixed
Parameters
$adapter : mixed = null
Tags
since
1.0.0
Return values
mixed

decrypt()

Decrypt the message.

public decrypt((mixed) $token) : mixed
Parameters
$token : (mixed)

encrypted token

Tags
since
1.0.0
Return values
mixed

encrypt()

Encrypt the message.

public encrypt((mixed) $data) : mixed
Parameters
$data : (mixed)

data to be encrypted

Tags
since
1.0.0
Return values
mixed

setAdapter()

Set the adapter.

public setAdapter((string) $adapter) : object
Parameters
$adapter : (string)
Tags
since
1.0.0
Return values
object

Search results