\PhalApi_Crypt

Crypt Interface

Summary

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

Methods

encrypt()

encrypt(mixed  $data, string  $key) : mixed

Encrypt data with key

Parameters

mixed $data

the data need to be encrypted

string $key

encrypt key

Returns

mixed —

encrypted data

decrypt()

decrypt(mixed  $data, string  $key) : mixed

Decrypt data with key

Parameters

mixed $data

encrypted data

string $key

encrypt key

Returns

mixed —

data after decrypt