public static function isLibsodiumSetupCorrectly(bool $echo = false): bool
    {
        if (!\extension_loaded('sodium')) {
            if ($echo) {
                echo "You do not have the sodium extension enabled.\n";
            }
            return false;
        }

        // Require libsodium 1.0.15
        $major = \SODIUM_LIBRARY_MAJOR_VERSION;
        if ($major < 10) {
            if ($echo) {
                echo 'Halite needs libsodium 1.0.15 or higher. You have: ',
                \SODIUM_LIBRARY_VERSION, "\n";
            }
            return false;
        }
        return true;
    }
public static function isLibsodiumSetupCorrectly(bool $echo = false): bool
    {
        if (!\extension_loaded('sodium')) {
            if ($echo) {
                echo "You do not have the sodium extension enabled.\n";
            }
            return false;
        }

        // Require libsodium 1.0.15
        $major = \SODIUM_LIBRARY_MAJOR_VERSION;
        if ($major < 10) {
            if ($echo) {
                echo 'Halite needs libsodium 1.0.15 or higher. You have: ',
                \SODIUM_LIBRARY_VERSION, "\n";
            }
            return false;
        }
        return true;
    }
public static function isLibsodiumSetupCorrectly ( bool $ echo = false ) : bool { if ( ! \ extension_loaded ( 'sodium' ) ) { if ( $ echo ) { echo "You do not have the sodium extension enabled.\n" ; } return false ; } // Require libsodium 1.0.15 $ major = \ SODIUM_LIBRARY_MAJOR_VERSION ; if ( $ major < 10 ) { if ( $ echo ) { echo 'Halite needs libsodium 1.0.15 or higher. You have: ' , \ SODIUM_LIBRARY_VERSION , "\n" ; } return false ; } return true ; }
Is Libsodium set up correctly? Use this to verify that you can use the
newer versions of Halite correctly.

@param bool $echo
@return bool
@codeCoverageIgnore
Is Libsodium set up correctly? Use this to verify that you can use the newer versions of Halite correctly .