mcrypt
How can I install mcrypt under PHP7? Laravel needs it
Had the same issue – PHP7 missing mcrypt. This worked for me. When asked, keep local PHP configuration files. sudo apt-get update sudo apt-get install mcrypt php7.0-mcrypt sudo apt-get upgrade Restart FPM (or Apache or NGINX etc.) after installation.
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
Best practices for storing bank information in a database
I think you can solve this problem without storing any bank information yourself through using something like Paypal’s Mass Payment API. That way, your client can pay people, and PayPal stores all the information so you don’t have to. If you want to read about all of the steps you need to take to even … Read more
Fatal error: Call to undefined function mcrypt_encrypt()
If you have recently updated to ubuntu 14.04 here is the fix to this problem: $ sudo mv /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/ $ sudo php5enmod mcrypt $ sudo service apache2 restart
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