openssl_decrypt()
public static function openssl_decrypt( $text, $encryption_key=null, $cipher_name='aes-256-ctr', $mac_key=null )
Decrypt AES-256-CTR with HMAC-SHA-512 hash.
Since: 2.3
Source: common.php:6968
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$text | string | Your message | |
$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 for the hash. |
Returns
string|false— the decrypted string on success or false on failure