Documentation

Encryption
in package

YetiForce register class.

Table of Contents

DEFAULT_METHOD  = 'AES-128-CBC'
decrypt()  : array<string|int, mixed>
Data decryption function.
encrypt()  : string
Data encryption function.
getDefaultData()  : array<string|int, mixed>
Get default configuration data for encryption.
getConfig()  : array<string|int, mixed>
Configuration data for encryption.

Constants

DEFAULT_METHOD

public string DEFAULT_METHOD = 'AES-128-CBC'

Default encryption method

Methods

decrypt()

Data decryption function.

public decrypt(string $data) : array<string|int, mixed>
Parameters
$data : string
Return values
array<string|int, mixed>

encrypt()

Data encryption function.

public encrypt(array<string|int, mixed> $data) : string
Parameters
$data : array<string|int, mixed>
Return values
string

getDefaultData()

Get default configuration data for encryption.

public getDefaultData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getConfig()

Configuration data for encryption.

private getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

        

Search results