Update ext/sodium preprocessor macro help texts (#15270) Aug 8, 2024 libsodium.c Clean-up some more headers (#14416) Jun 9, 2024 libsodium.stub.php [sodium] Add AEGIS-128L and AEGIS-256 (#12867) Dec 7, 2023 libsodium_arginfo.h ...
安装sodium 不要去 php源码路径ext/sodium下面装,采用下面方式装 yum install -y libsodium libsodium-devel wget http://pecl.php.net/get/libsodium-2.0.23.tgz tar zxvf libsodium-2.0.23.tgz cd libsodium-2.0.23 /usr/local/data/php/bin/phpize ./configure --with-php-config=/usr/local/data/php...
ext-sodium requires libsodium version 1.0.8, which already supports crypto_onetimeauth. However, crypto_onetimeauth_keygen is only available on libsodium 1.0.12, so the _keygen() function uses the RNG. This is simialr to other *_keygen() functions, except AEGIS functions which requires libsodiu...
--with-sodium标志来构建才能使用它。 但是,这是CI环境,我只能修改Docker镜像;我无法使用其他的。我正在使用 docker 镜像 drupalci/php-8.2-apache。 在 .gitlab-ci.yml中,我尝试了这个: before_script: - apt-get update - apt-get install -y --no-install-recommends libsodium-dev libsodium 已安装,但...
安装sodium 不要去 php源码路径ext/sodium下面装,采用下面方式装 yuminstall-ylibsodium libsodium-develwgethttp://pecl.php.net/get/libsodium-2.0.23.tgztarzxvf libsodium-2.0.23.tgzcdlibsodium-2.0.23 /usr/local/data/php/bin/phpize ./configure --with-php-config=/usr/local/data/php/bin/php-confi...
php// 生成随机密钥$encryption_key=sodium_crypto_secretbox_keygen();// 要加密的数据$message="Hello, Sodium!";// 生成随机的 nonce$nonce=random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);// 加密数据$ciphertext=sodium_crypto_secretbox($message,$nonce,$encryption_key);// 解密数据$plaintext=sodium_...
return \sodium_crypto_aead_aes256gcm_decrypt($ciphertext, $associatedData, $nonceStr, $aesKey); } // ext-libsodium (need install libsodium-php 1.x via pecl) if (function_exists('\Sodium\crypto_aead_aes256gcm_is_available') &&
Sodium 简介 安装/配置 预定义常量 Sodium 函数 数据库扩展 数据库抽象层 DBA— Database (dbm-style) Abstraction Layer dbx ODBC— ODBC (Unified) PDO— PHP 数据对象 针对各数据库系统对应的扩展 CUBRID DB++ dBase filePro Firebird/InterBase FrontBase IBM DB2— IBM DB2, Cloudscape and Apache Derby Inf...
ext-pdo_mysql.ini,/usr/local/etc/php/conf.d/docker-php-ext-redis.ini,/usr/local/etc/php/conf.d/docker-php-ext-sockets.ini,/usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,/usr/local/etc/php/conf.d/docker-php-ext-swoole.ini,/usr/local/etc/php/conf.d/docker-php-ext-xdebug....
calendar enchant gd intl oci8 pdo_dblib pgsql session sodium tidy xsl com_dotnet exif gettext json odbc pdo_firebird phar shmop spl tokenizer zend_test ctype ext_skel gmp ldap opcache pdo_mysql posix simplexml sqlite3 wddx zip curl ext_skel_win32.phphashlibxml openssl pdo_oci pspell skeleton...