• 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

Session timeout in Yii2

Get number of working days between two dates in PHP [duplicate]

How to get an Array value inside an object in an array Php [duplicate]

javascript html popup window

How can I make a full text index of the column?

Whats the point of running Laravel with the command 'php artisan serve'?

protect images from being copied

How avoid Moved Permanently The document has moved here

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

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

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

Convert every two values of an associative array into key-value pairs

How do I call a php file with axios?

About Contact Privacy policy Terms and conditions