Documentation

OpenSslEncryption

Table of Contents

$cipher  : string
Cipher.
$iv  : string
Store the cipher iv.
__construct()  : void
__Construct.
decrypt()  : mixed
Decrypt the message.
encrypt()  : token
Encrypt the message.
iv_bytes()  : int
Get the length of cipher.

Properties

Methods

__construct()

__Construct.

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

decrypt()

Decrypt the message.

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

=> encrypted token

Tags
since
1.0.0
Return values
mixed

encrypt()

Encrypt the message.

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

=> data to be encrypted

Tags
since
1.0.0
Return values
token

iv_bytes()

Get the length of cipher.

protected iv_bytes( $method) : int
Parameters
$method :
Tags
since
1.0.0
Return values
int

Search results