openssl_encrypt()
openssl_encrypt - Encrypts data
Syntax
string openssl_encrypt (
string $data,
string $method,
string $password,
bool $raw_output)
Arguments
- data - The data.
- method - The cipher method.
- password - The password.
- raw_output - Setting to TRUE will return as raw output data, otherwise the return value is base64 encoded.
Description
Encrypts given data with given method and key, returns a raw or base64 encoded string
Version
PHP 5.3.0
Return value
Returns the encrypted string on success or FALSE on failure.