can’t find mcrypt => Call to undefined function Laravel\mcrypt_create_iv()

Ubuntu or any Debian based Linux users can install the required package with apt-get: sudo apt-get install php5-mcrypt Remember to restart the web server afterwards: sudo service apache2 restart If it still doesn’t work, try to link the configuration file to the appropriate configuration folder for the web server. Thanks to dave1010 for this hint … Read more

Docker-php-ext-install mcrypt missing folder

mcrypt extension is not provided with the PHP source since 7.2 , but are instead available through PECL. To install a PECL extension in docker, use pecl install to download and compile it, then use docker-php-ext-enable to enable it: pecl install mcrypt-1.0.5 docker-php-ext-enable mcrypt Before the pecl install you may need to install/update the package … Read more

mcrypt is deprecated, what is the alternative?

It’s best practice to hash passwords so they are not decryptable. This makes things slightly more difficult for attackers that may have gained access to your database or files. If you must encrypt your data and have it decryptable, a guide to secure encryption/decryption is available at https://paragonie.com/white-paper/2015-secure-php-data-encryption. To summarize that link: Use Libsodium – … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)