Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'
More simple way on ubuntu
apt-get install php5-mcrypt
mv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/
php5enmod mcrypt
service apache2 restart
check http://php.net/manual/en/mcrypt.installation.php
Is mcrypt_encrypt() function not working in PHP 7.2?
I have found solution of my query. Please check below
function encrypt($plaintext,$key)
{
return base64_encode(openssl_encrypt($plaintext, 'aes-128-ecb', $key, OPENSSL_RAW_DATA));
}
Related Topics
Symfony 3.1.5 Warning: Sessionhandler::Read(): Session Data File Is Not Created by Your Uid
The Behaviour of the or Operator in PHP
Extend Request Class in Laravel 5
Notice: Ob_End_Flush(): Failed to Send Buffer of Zlib Output Compression (1) In
How to Call Curl_Setopt with Curlopt_Httpheader Multiple Times to Set Multiple Headers
Why Is Object Oriented PHP with MySQLi Better Than the Procedural Approach
Changes to Upload_Max_Filesize in Ubuntu PHP.Ini Will Not Take Effect
Determine If User Is Using Proxy
PHP Readfile() and Large Files
How to Select a MySQL Database to Use with Pdo in PHP
A Better Way to Replace Emoticons in PHP
Iconv_Strlen Function Causing Execution Timeout, Running on Mamp
PHP Utf-8 to Windows Command Line Encoding