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
$cipher
Cipher.
private
string
$cipher
= 'AES-256-CBC'
Tags
$iv
Store the cipher iv.
private
string
$iv
Tags
Methods
__construct()
__Construct.
public
__construct([mixed $key = null ]) : void
Parameters
- $key : mixed = null
Tags
Return values
void —decrypt()
Decrypt the message.
public
decrypt( $token) : mixed
Parameters
Tags
Return values
mixed —encrypt()
Encrypt the message.
public
encrypt( $data) : token
Parameters
Tags
Return values
token —iv_bytes()
Get the length of cipher.
protected
iv_bytes( $method) : int