略微加速
PHP官方手册 - 互联网笔记
首页
IT
PHP手册
Elasticsearch
SVN手册
互联网
博客
登陆
注册
PHP - Manual: Sodium 函数
2025-03-31
sodium_add »
« 预定义常量
PHP 手册
函数参考
加密扩展
Sodium
Sodium 函数
目录
sodium_add
— Add large numbers
sodium_base642bin
— Decodes a base64-encoded string into raw binary.
sodium_bin2base64
— Encodes a raw binary string with base64.
sodium_bin2hex
— Encode to hexadecimal
sodium_compare
— Compare large numbers
sodium_crypto_aead_aegis128l_decrypt
— Verify then decrypt a message with AEGIS-128L
sodium_crypto_aead_aegis128l_encrypt
— Encrypt then authenticate a message with AEGIS-128L
sodium_crypto_aead_aegis128l_keygen
— Generate a random AEGIS-128L key
sodium_crypto_aead_aegis256_decrypt
— Verify then decrypt a message with AEGIS-256
sodium_crypto_aead_aegis256_encrypt
— Encrypt then authenticate a message with AEGIS-256
sodium_crypto_aead_aegis256_keygen
— Generate a random AEGIS-256 key
sodium_crypto_aead_aes256gcm_decrypt
— Verify then decrypt a message with AES-256-GCM
sodium_crypto_aead_aes256gcm_encrypt
— Encrypt then authenticate with AES-256-GCM
sodium_crypto_aead_aes256gcm_is_available
— Check if hardware supports AES256-GCM
sodium_crypto_aead_aes256gcm_keygen
— Generate a random AES-256-GCM key
sodium_crypto_aead_chacha20poly1305_decrypt
— Verify then decrypt with ChaCha20-Poly1305
sodium_crypto_aead_chacha20poly1305_encrypt
— Encrypt then authenticate with ChaCha20-Poly1305
sodium_crypto_aead_chacha20poly1305_ietf_decrypt
— Verify that the ciphertext includes a valid tag
sodium_crypto_aead_chacha20poly1305_ietf_encrypt
— Encrypt a message
sodium_crypto_aead_chacha20poly1305_ietf_keygen
— Generate a random ChaCha20-Poly1305 (IETF) key.
sodium_crypto_aead_chacha20poly1305_keygen
— Generate a random ChaCha20-Poly1305 key.
sodium_crypto_aead_xchacha20poly1305_ietf_decrypt
— (Preferred) Verify then decrypt with XChaCha20-Poly1305
sodium_crypto_aead_xchacha20poly1305_ietf_encrypt
— (Preferred) Encrypt then authenticate with XChaCha20-Poly1305
sodium_crypto_aead_xchacha20poly1305_ietf_keygen
— Generate a random XChaCha20-Poly1305 key.
sodium_crypto_auth
— Compute a tag for the message
sodium_crypto_auth_keygen
— Generate a random key for sodium_crypto_auth
sodium_crypto_auth_verify
— Verifies that the tag is valid for the message
sodium_crypto_box
— Authenticated public-key encryption
sodium_crypto_box_keypair
— Randomly generate a secret key and a corresponding public key
sodium_crypto_box_keypair_from_secretkey_and_publickey
— Create a unified keypair string from a secret key and public key
sodium_crypto_box_open
— Authenticated public-key decryption
sodium_crypto_box_publickey
— Extract the public key from a crypto_box keypair
sodium_crypto_box_publickey_from_secretkey
— Calculate the public key from a secret key
sodium_crypto_box_seal
— Anonymous public-key encryption
sodium_crypto_box_seal_open
— Anonymous public-key decryption
sodium_crypto_box_secretkey
— Extracts the secret key from a crypto_box keypair
sodium_crypto_box_seed_keypair
— Deterministically derive the key pair from a single key
sodium_crypto_core_ristretto255_add
— Adds an element
sodium_crypto_core_ristretto255_from_hash
— Maps a vector
sodium_crypto_core_ristretto255_is_valid_point
— Determines if a point on the ristretto255 curve
sodium_crypto_core_ristretto255_random
— Generates a random key
sodium_crypto_core_ristretto255_scalar_add
— Adds a scalar value
sodium_crypto_core_ristretto255_scalar_complement
— The sodium_crypto_core_ristretto255_scalar_complement purpose
sodium_crypto_core_ristretto255_scalar_invert
— Inverts a scalar value
sodium_crypto_core_ristretto255_scalar_mul
— Multiplies a scalar value
sodium_crypto_core_ristretto255_scalar_negate
— Negates a scalar value
sodium_crypto_core_ristretto255_scalar_random
— Generates a random key
sodium_crypto_core_ristretto255_scalar_reduce
— Reduces a scalar value
sodium_crypto_core_ristretto255_scalar_sub
— Subtracts a scalar value
sodium_crypto_core_ristretto255_sub
— Subtracts an element
sodium_crypto_generichash
— Get a hash of the message
sodium_crypto_generichash_final
— Complete the hash
sodium_crypto_generichash_init
— Initialize a hash for streaming
sodium_crypto_generichash_keygen
— Generate a random generichash key
sodium_crypto_generichash_update
— Add message to a hash
sodium_crypto_kdf_derive_from_key
— Derive a subkey
sodium_crypto_kdf_keygen
— Generate a random root key for the KDF interface
sodium_crypto_kx_client_session_keys
— Calculate the client-side session keys.
sodium_crypto_kx_keypair
— Creates a new sodium keypair
sodium_crypto_kx_publickey
— Extract the public key from a crypto_kx keypair
sodium_crypto_kx_secretkey
— Extract the secret key from a crypto_kx keypair.
sodium_crypto_kx_seed_keypair
— Description
sodium_crypto_kx_server_session_keys
— Calculate the server-side session keys.
sodium_crypto_pwhash
— Derive a key from a password, using Argon2
sodium_crypto_pwhash_scryptsalsa208sha256
— Derives a key from a password, using scrypt
sodium_crypto_pwhash_scryptsalsa208sha256_str
— Get an ASCII encoded hash
sodium_crypto_pwhash_scryptsalsa208sha256_str_verify
— Verify that the password is a valid password verification string
sodium_crypto_pwhash_str
— Get an ASCII-encoded hash
sodium_crypto_pwhash_str_needs_rehash
— Determine whether or not to rehash a password
sodium_crypto_pwhash_str_verify
— Verifies that a password matches a hash
sodium_crypto_scalarmult
— Compute a shared secret given a user's secret key and another user's public key
sodium_crypto_scalarmult_base
— 别名 sodium_crypto_box_publickey_from_secretkey
sodium_crypto_scalarmult_ristretto255
— Computes a shared secret
sodium_crypto_scalarmult_ristretto255_base
— Calculates the public key from a secret key
sodium_crypto_secretbox
— Authenticated shared-key encryption
sodium_crypto_secretbox_keygen
— Generate random key for sodium_crypto_secretbox
sodium_crypto_secretbox_open
— Authenticated shared-key decryption
sodium_crypto_secretstream_xchacha20poly1305_init_pull
— Initialize a secretstream context for decryption
sodium_crypto_secretstream_xchacha20poly1305_init_push
— Initialize a secretstream context for encryption
sodium_crypto_secretstream_xchacha20poly1305_keygen
— Generate a random secretstream key.
sodium_crypto_secretstream_xchacha20poly1305_pull
— Decrypt a chunk of data from an encrypted stream
sodium_crypto_secretstream_xchacha20poly1305_push
— Encrypt a chunk of data so that it can safely be decrypted in a streaming API
sodium_crypto_secretstream_xchacha20poly1305_rekey
— Explicitly rotate the key in the secretstream state
sodium_crypto_shorthash
— Compute a short hash of a message and key
sodium_crypto_shorthash_keygen
— Get random bytes for key
sodium_crypto_sign
— Sign a message
sodium_crypto_sign_detached
— Sign the message
sodium_crypto_sign_ed25519_pk_to_curve25519
— Convert an Ed25519 public key to a Curve25519 public key
sodium_crypto_sign_ed25519_sk_to_curve25519
— Convert an Ed25519 secret key to a Curve25519 secret key
sodium_crypto_sign_keypair
— Randomly generate a secret key and a corresponding public key
sodium_crypto_sign_keypair_from_secretkey_and_publickey
— Join a secret key and public key together
sodium_crypto_sign_open
— Check that the signed message has a valid signature
sodium_crypto_sign_publickey
— Extract the Ed25519 public key from a keypair
sodium_crypto_sign_publickey_from_secretkey
— Extract the Ed25519 public key from the secret key
sodium_crypto_sign_secretkey
— Extract the Ed25519 secret key from a keypair
sodium_crypto_sign_seed_keypair
— Deterministically derive the key pair from a single key
sodium_crypto_sign_verify_detached
— Verify signature for the message
sodium_crypto_stream
— Generate a deterministic sequence of bytes from a seed
sodium_crypto_stream_keygen
— Generate a random sodium_crypto_stream key.
sodium_crypto_stream_xchacha20
— Expands the key and nonce into a keystream of pseudorandom bytes
sodium_crypto_stream_xchacha20_keygen
— Returns a secure random key
sodium_crypto_stream_xchacha20_xor
— Encrypts a message using a nonce and a secret key (no authentication)
sodium_crypto_stream_xchacha20_xor_ic
— Encrypts a message using a nonce and a secret key (no authentication)
sodium_crypto_stream_xor
— Encrypt a message without authentication
sodium_hex2bin
— Decodes a hexadecimally encoded binary string
sodium_increment
— Increment large number
sodium_memcmp
— Test for equality in constant-time
sodium_memzero
— Overwrite a string with NUL characters
sodium_pad
— Add padding data
sodium_unpad
— Remove padding data
发现了问题?
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
官方地址:
https://www.php.net/manual/en/ref.sodium.php
有任何技术问题请点击这里
网站运营推广招聘
IT
PHP
编程语言
开发编程
Linux
科技
Elasticsearch
HTML/CSS/XML
面试
数据库
网络
JAVA
NoSQL
C/C++
Golang
Git
算法
操作系统
正则表达式
Redis
互联网
MySql
JavaScript
运维
软件
国际
架构设计
Mac OS
TCP/IP
Excel
Windows
Vim
Socket
Oracle
VR
MongoDB
Python
运营
MemCache
商业
硬件
电子
娱乐
设计
nginx
摄影
游戏
WordPress
HTTP
团建
数码电器
Docker
广告
广告
laravel查看orm生成的sql
PHPStorm ESC 会退出命令行
laravel orm中DB::insert方法导致内存泄漏的问题解决方法
docker-compose启动nginx与php-fpm
composer install参数
php7 安装fileinfo扩展
php位值,解决 PHP 中 usort 在值相同时改变原始位置的问题
preg_split — 通过一个正则表达式分隔字符串
[PHP] inet_pton/inet_ntop IP地址转换函数
Composer的Packagist资源
[鸟哥]PHP_INT_MIN 和 -9223372036854775808
PHP json解析(json_decode)页面工具
opcache预加载
mysql面试题
PHP 8.1
ADORecordSet对象
支持php7的性能采集扩展
常用的php ADODB使用方法集锦
php上周一、本周一、下周一日期
adodb手册
联系我们
半月雨文化
可降解耗材网
蓝云环保
78免费小説
上海网站seo优化
工程造价
币安app官网下载
币安app官网下载
coinbase
贷款信息
seo查询
北京半月雨文化科技有限公司
.版权所有
京ICP备12026184号-3