PHP8 sodium_hex2bin

2024-03-19 10:46 更新

(PHP 7 >= 7.2.0, PHP 8)

sodium_hex2bin — 解碼十六進(jìn)制編碼的二進(jìn)制字符串

說(shuō)明

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

對(duì)十六進(jìn)制編碼的二進(jìn)制字符串進(jìn)行解碼。

與 sodium_bin2hex() 一樣,sodium_hex2bin() 可以抵抗側(cè)信道攻擊,而 hex2bin() 則不能。

參數(shù) 

string

數(shù)據(jù)的十六進(jìn)制表示形式。

ignore

要忽略的字符的可選字符串參數(shù)。

返回值 

返回給定數(shù)據(jù)的二進(jìn)制表示形式。string


以上內(nèi)容是否對(duì)您有幫助:
在線(xiàn)筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)