Encryption implements Encryption
Interfaces, Classes and Traits
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
Methods
__construct()
__construct.
public
__construct([mixed $adapter = null ]) : mixed
Parameters
- $adapter : mixed = null
Tags
Return values
mixed —decrypt()
Decrypt the message.
public
decrypt((mixed) $token) : mixed
Parameters
- $token : (mixed)
-
encrypted token
Tags
Return values
mixed —encrypt()
Encrypt the message.
public
encrypt((mixed) $data) : mixed
Parameters
- $data : (mixed)
-
data to be encrypted
Tags
Return values
mixed —setAdapter()
Set the adapter.
public
setAdapter((string) $adapter) : object
Parameters
- $adapter : (string)