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 ...
--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 已安装,但...
ext_skel 脚本 与UNIX 构建系统交互: config.m4 使用Windows 构建系统:config.w32 扩展的结构 组成扩展的文件 Basic constructs The zend_module structure Extension globals Life cycle of an extension Testing an extension PDO 驱动 前提条件 配置与管理 Fleshing out your skeleton Building Testing Packaging and...
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\crypto_aead_aes256gcm_is_available()) { return ...
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...
不要去 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/bin/php-...
ext-mysqli.ini,/usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini,/usr/local/etc/php/conf.d/docker-php-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....
安装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_...
}//ext-sodium (default installed on >= PHP 7.2)if(function_exists('\sodium_crypto_aead_aes256gcm_is_available') &&\sodium_crypto_aead_aes256gcm_is_available() ){return\sodium_crypto_aead_aes256gcm_decrypt($ciphertext,$associatedData,$nonceStr,$aesKey); ...