SodiumEncryption extends AbstractAdapter
Table of Contents
- $key : key
- Store the secret key.
- __construct() : mixed
- __Construct.
- decrypt() : mixed
- Decrypt the message.
- encrypt() : mixed
- Encrypt the message.
Properties
$key
Store the secret key.
protected
key
$key
Tags
Methods
__construct()
__Construct.
public
__construct([mixed $key = null ]) : mixed
Parameters
- $key : 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