codecamp

PHP8 sodium_hex2bin

(PHP 7 >= 7.2.0, PHP 8)

sodium_hex2bin — 解码十六进制编码的二进制字符串

说明

sodium_hex2bin(string $string, string $ignore = ""): string

对十六进制编码的二进制字符串进行解码。

与 sodium_bin2hex() 一样,sodium_hex2bin() 可以抵抗侧信道攻击,而 hex2bin() 则不能。

参数 

string

数据的十六进制表示形式。

ignore

要忽略的字符的可选字符串参数。

返回值 

返回给定数据的二进制表示形式。string


PHP8 sodium_crypto_stream
PHP8 sodium_increment
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定