Documentation

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

Methods

__construct()

__Construct.

public __construct([mixed $key = null ]) : mixed
Parameters
$key : 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

Search results