Environment - PHP extension sodium: Difference between revisions

From MoodleDocs
(Some notes about php-sodium and current php-openssl fallback)
mNo edit summary
Line 3: Line 3:
The php-sodium extension provides strong encryption capabilities in an easy and consistent way.  
The php-sodium extension provides strong encryption capabilities in an easy and consistent way.  


Note that, for sites not having the extension installed, a php-openssl based solution, considered suboptimal, is used, and this fallback will stop working in a few versions (Moodle 4.2).
Note that, for sites not having the extension installed, a php-openssl based solution, considered suboptimal, is used, and this fallback will stop working in a few versions (Moodle 4.2). See MDL-71421 for more details.


Hence, it's highly recommended to start using php-sodium.
Hence, it's highly recommended to start using php-sodium.

Revision as of 12:25, 6 May 2021


The php-sodium extension provides strong encryption capabilities in an easy and consistent way.

Note that, for sites not having the extension installed, a php-openssl based solution, considered suboptimal, is used, and this fallback will stop working in a few versions (Moodle 4.2). See MDL-71421 for more details.

Hence, it's highly recommended to start using php-sodium.

Please see https://www.php.net/manual/book.sodium.php

Please see [1]