class Crypto (View source)

Methods

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

Set the key

static string
encrypt(string $data)

Encrypt data

static string
decrypt(string $data)

decrypt

Details

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

Set the key

Parameters

string $key
string $cipher

static string encrypt(string $data)

Encrypt data

Parameters

string $data

Return Value

string

static string decrypt(string $data)

decrypt

Parameters

string $data

Return Value

string