class Crypto (View source)

Methods

static 
setKey(string $key, string|null $cipher = null)

Set the key

static string|bool
encrypt(string $data)

Encrypt data

static string|bool
decrypt(string $data)

decrypt

Details

static setKey(string $key, string|null $cipher = null)

Set the key

Parameters

string $key
string|null $cipher

static string|bool encrypt(string $data)

Encrypt data

Parameters

string $data

Return Value

string|bool

static string|bool decrypt(string $data)

decrypt

Parameters

string $data

Return Value

string|bool