openssl_encrypt

PHP 5 >= 5.3.0, PHP 7, PHP 8
openssl_encrypt - Encrypts data
Manual
Code Examples

Example #1 AES Authenticated Encryption in GCM mode example for PHP 7.1+

PHP Version:

Example #2 AES Authenticated Encryption example prior to PHP 7.1

PHP Version:


Function openssl_encrypt:

OpenSSL Functions

Most used PHP functions