RunCloud continues it’s week of upgrading with a featured PHP Update today, including support for Argon2 and Sodium in PHP 7.2.
These security enhancements mean that PHP is the first programming language to add modern cryptography to it’s standard library. We look forward to your Web Applications enjoying the added security this groundbreaking update provides.
In addition, we have included the added bonus of MongoDB drivers becoming available in the RunCloud PHP stack. Can you see where this is headed?
PHP 7.2 includes support for a new password hashing algorithm Argon2. Argon2 was the winner of the Password Hashing Competition (PHC) in July 2015. Note that the Argon2 module is only available for PHP 7.2 and therefore doesn’t support PHP 7.1 and below.
To benefit from the update you don’t have to do anything inside your server, because it has been taken care of by RunCloud.
If you want to use Argon2 inside PHP 7.0 and PHP 7.1, you can manually compile it from PHP Argon2 Ext. The Argon2 library is available inside our repository (RunCloud Release). You just have to download them to compile your own Argon2 module.
sudo apt-get install libargon2-1-dev
From the author’s description, libsodium is a new, modern, easy-to-use software library for encryption, decryption, signatures, password hashing and more.
Support for this module also has been included with PHP 7.2 and is installed by default with every RunCloud Provisioned server stack.
Again, you can also manually install php-sodium inside PHP 7.0 and PHP 7.1 by manually compile it from the libsodium-php GitHub repository.
We have also included MongoDB Drivers for PHP, but they are not installed by default. If you wish to use them, they need installing for each PHP version required.
# PHP 5.5 sudo apt-get install php55rc-pecl-mongodb sudo systemctl reload php55rc-fpm # PHP 5.6 sudo apt-get install php56rc-pecl-mongodb sudo systemctl reload php56rc-fpm # PHP 7.0 sudo apt-get install php70rc-pecl-mongodb sudo systemctl reload php70rc-fpm # PHP 7.1 sudo apt-get install php71rc-pecl-mongodb sudo systemctl reload php71rc-fpm # PHP 7.2 sudo apt-get install php72rc-pecl-mongodb sudo systemctl reload php72rc-fpm
That is all for now…
But we would love to hear back from you, let us know how you intend to implement the added features in the comments below.