• 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

args[max_input] woocommerce if statement confused

Match single unknown parameter php (Morse-code Regex)

Parsing JSON File to array in PHP

Testing subscription renewals on Stripe

How to make a foreign key not using primary key

Laravel: Why is my variable not being set while it's in the construct function of the controller?

Put content of wordpress page inside div

500 Internal Server Error on Ajax request. Not sure the origin of the problem

Prestashop cUrl Login

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

phpseclib 2.0 can not use Composer to create autoload

CodeIgniter 3 is generating a session file on each request, why?

Laravel Model save() & update() Not Saving

How to give apache permission to write to home directory?

PHP/HTML: Creating A SubMenu

About Contact Privacy policy Terms and conditions