sodium_bin2hex
(PHP 7 >= 7.2.0, PHP 8)
sodium_bin2hex — Encode to hexadecimal
说明
sodium_bin2hex(string
$string
): stringConverts a raw binary string into a hex-encoded string. Unlike the standard hex-encoding function, sodium_bin2hex() is constant-time (a property that is important for any code that touches cryptographic inputs, such as plaintexts or keys).
参数
-
string
-
Raw binary string.
返回值
Hex encoded string.

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/function.sodium-bin2hex.php