encrypt()
encrypt(string $key, string $data) : string
Encrypt some data
Parameters
string | $key | The encryption key. The longer and more unique this string is the more secure the encrypted data is. The key should also be kept in a secure location. |
string | $data | The data to encrypt. |
Returns
string —The encrypted data, or FALSE