ini extension=sodium 保存文件并重启你的Web服务器。 5. 验证sodium扩展是否已成功安装并启用 再次运行以下命令来验证sodium扩展是否已成功安装并启用: bash php -m | grep sodium 如果输出中包含sodium,则说明扩展已成功安装并启用。 现在,你的PHP环境应该已经配置好了sodium扩展,可以开始使用它来加密数据了。
:) - Scott Arciszewski 我的必须是 extension=sodium.so,正如这里所提到的:https://paragonie.com/book/pecl-libsodium/read/00-intro.md。 - Ryan1 你也可以使用https://github.com/paragonie/sodium_compat。你可以简单地使用: composer require paragonie/sodium_compat - jessiPP网页内容由stack overflow ...
git clone https://github.com/alethia7/php-sodium.git phpize&&./configure&&make&&sudo make install;maketest Enable sodium extenion in PHP. Add "extension = sodium.so" to php.ini. On Debian systems execute: #As rootecho"extension = sodium.so">/etc/php5/mods-available/sodium.ini php5en...
Some time ago I produced a php8-pecl-sodium package for master. The application that I use that optionally relies on sodium is NextCloud, and I find that that application for some reason does not detect the sodium package despite it being installed. So it might be possible to backport php8...
> Chapter Kittur, F.S.; Saroja, N.; Habibunnisa ; Tharanathan, R.N. European Food Research and Technology 213(4/5): 306-311 2001 ISSN/ISBN:1438-2377 10.1007/s002170100363 003528367 Full-Text Article emailed within 0-6 h Buy Now for$19.90 ...
This repository contains a script that can be used to easily install a PHP extension inside theofficial PHP Docker images. The script will install all the required APT/APK packages; at the end of the script execution, the no-more needed packages will be removed so that the image will be ...
$secretKey = sodium_crypto_secretstream_xchacha20poly1305_keygen(); $inputFile = '/tmp/example.original'; $encryptedFile = '/tmp/example.enc'; $chunkSize = 4096; $fdIn = fopen($inputFile, 'rb'); $fdOut = fopen($encryptedFile, 'wb'); [$stream, $header] = sodium_crypto_secret...
$ docker run --rm php:7.2-cli php -m [PHP Modules] Core ctype curl date dom fileinfo filter ftp hash iconv json libxml mbstring mysqlnd openssl pcre PDO pdo_sqlite Phar posix readline Reflection session SimpleXML sodium SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zlib [Zend Modules...
$ docker run --rm php:7.2-cli php -m [PHP Modules] Core ctype curl date dom fileinfo filter ftp hash iconv json libxml mbstring mysqlnd openssl pcre PDO pdo_sqlite Phar posix readline Reflection session SimpleXML sodium SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zlib [Zend Modules...
sodium spl sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlwriter xsl zend_test zip zlib ext_skel.php main pear sapi scripts tests travis win32 .cirrus.yml .editorconfig .gdbinit .gitattributes .gitignore .travis.yml CODING_STANDARDS.md CONTRIBUTING.md EXTENSIO...