• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Call to undefined function openssl_decrypt

phpopensslphp-openssl


PHP Snippet 1:

extension=php_openssl.dll

PHP Snippet 2:

<?php
include('Crypt/AES.php');

$cipher = new Crypt_AES(); // it's cbc by default
$cipher->setKeyLength(256);
$cipher->setKey('abcdefghijklmnopijklmnopqrstuvwxyz3456');

$size = 10 * 1024;
$plaintext = str_repeat('a', $size);

echo $cipher->decrypt($cipher->encrypt($plaintext));
?>

Related Snippets

PHP, how to convert Int value to Week days

Use Python plotly chart in PHP

Adding custom body class to the custom archive pages

Laravel Schedule not sending email

How to use $this->session->set_userdata in codeigniter

Last order would be re-order in wooCommerce. How is it possible?

XML to CSV with PHP converter [problem with images grabing]

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

Find out the name of the last script that included the current one

Update Order custom Field value with WooCommerce REST API

mysql_result is defined but mysql_free_result warns it expected a resource

Pages are working fine on localhost but not running on the hosting server

woocommerce get_order_report_data to show order_item_id

Yii2 select2 database exception number of bound variables does not match number of tokens

Pass an image through AJAX [duplicate]

About Contact Privacy policy Terms and conditions