\ManaPHP\SecurityCryptInterface

Summary

Methods
Constants
encrypt()
decrypt()
setMasterKey()
getDerivedKey()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

encrypt()

encrypt(string  $text, string  $key) : string

Encrypts a text

Parameters

string $text
string $key

Returns

string

decrypt()

decrypt(string  $text, string  $key) : string

Decrypts a text

Parameters

string $text
string $key

Returns

string

setMasterKey()

setMasterKey(string  $key) : static

Parameters

string $key

Returns

static

getDerivedKey()

getDerivedKey(string  $type) : string

Parameters

string $type

Returns

string