• 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

Laravel eloquent update record without loading from database

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

PHP error: "The zip extension and unzip command are both missing, skipping."

Multiply each value in array using array_map function

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

Android Volley getParams() method not getting called for JsonObjectRequest

Display Link Title Instead of URL in XSL

Encrypt in php and decrypt in Dart(flutter)

Populate Dynamic Dropdowns List in Codeigniter

How to create custom authentication in laravel 8?

best way to store error messages in Laravel (session or variable)

PHP each() function replacement

WooCommerce - unset "<product> removed notice…" on cart page

How do I set the maximum php memory limit

PHP Warning: Module already loaded in Unknown on line 0

About Contact Privacy policy Terms and conditions