略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: sodium_bin2hex

2025-02-27

sodium_bin2hex

(PHP 7 >= 7.2.0, PHP 8)

sodium_bin2hexEncode to hexadecimal

说明

sodium_bin2hex(#[\SensitiveParameter] 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.

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/function.sodium-bin2hex.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3