Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Encrypt an S/MIME message
openssl_pkcs7_encrypt( string $input_filename, string $output_filename, OpenSSLCertificate|array|string $certificate, ?array $headers, int $flags = 0, int $cipher_algo = OPENSSL_CIPHER_AES_128_CBC): bool