0

I'm using xampp and I'm trying to use sodium for encryption.

I've search through so many threads - I've uncommented sodium in php.ini.

I've tried installing it on my xampp command shell using pecl I get

Notice: Trying to access array offset on value of type bool in PEAR\REST.php on line 186
No releases available for package "pecl.php.net/sodium"
install failed

I've tried clearing my pear cache(which worked) and got the same error after trying to upgrade it

Notice: Trying to access array offset on value of type bool in PEAR\REST.php on line 186

Any ideas?

matt
  • 85
  • 7
  • 1
    Don't use PECL. _"As of PHP 7.2.0 this extension is bundled with PHP."_ – Alex Howansky Apr 02 '21 at 00:24
  • When I try to use it in code it gives me errors, do I need to import it somehow even though it's bundled? (sorry front end developer taking one for work team) – matt Apr 02 '21 at 00:30
  • I'm not familiar w/ XAMPP packaging, so I can't say. You might simply have to [enable it in the php.ini](https://www.php.net/manual/en/sodium.installation.php). – Alex Howansky Apr 02 '21 at 00:34

0 Answers0