Natassia, I've described how to do this for Linux (Redhat) here: https://tracker.moodle.org/browse/MDL-70363
You have to compile php-pecl sodium and add it to your php modules.
You have to compile php-pecl sodium and add it to your php modules.