Skip to main content

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

NameTypeDefaultDescription
$textstringYour message
$encryption_keystringnullKey for encryption
$cipher_namestring'aes-256-ctr'The cypher name. Default 'aes-256-ctr'.
$mac_keystringnullThe key to be used for the hash.

Returns

  • string | false — the decrypted string on success or false on failure