Encrypt implements Encrypt
Interfaces, Classes and Traits
Table of Contents
- $adapter : object
- Store the adapter object.
- decrypt() : mixed
- Decrypt the message.
- encrypt() : mixed
- Encrypt the message.
- setAdapter() : object
- Set the adapter.
Properties
$adapter
Store the adapter object.
private
static object
$adapter
= null
Tags
Methods
decrypt()
Decrypt the message.
public
static decrypt((mixed) $token[, mixed $adapter = null ]) : mixed
Parameters
- $token : (mixed)
-
encrypted token
- $adapter : mixed = null
Tags
Return values
mixed —encrypt()
Encrypt the message.
public
static encrypt((mixed) $data[, mixed $adapter = null ]) : mixed
Parameters
- $data : (mixed)
-
data to be encrypted
- $adapter : mixed = null
Tags
Return values
mixed —setAdapter()
Set the adapter.
public
static setAdapter((string) $adapter) : object
Parameters
- $adapter : (string)