哈希空间 Ctrl + F 进行搜索
首页 php手册中文版 CSS中文手册 哈希文档 Markdown在线工具

PHP sodium 组件

sodium_bin2hex

(PHP 7 >= 7.2.0, PHP 8)

sodium_bin2hexEncode to hexadecimal

说明

sodium_bin2hex(string $string): string

Converts 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.

打开 哈希空间 微信小程序中查看更佳