openssl_encrypt()
public static function openssl_encrypt( $text, $encryption_key=null, $cipher_name='aes-256-ctr', $mac_key=null )
Encrypt with AES-256-CTR plus HMAC-SHA-512 hash.
Since: 2.3
Source: common.php:6924
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$text | string | The text to encrypt. | |
$encryption_key | string | null | Key for encryption |
$cipher_name | string | 'aes-256-ctr' | The cypher name. Default 'aes-256-ctr'. |
$mac_key | string | null | The key to be used to generate the hash. |
Returns
string|false— the encrypted string on success or false on failure