mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
75 lines
2.4 KiB
HTML
75 lines
2.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Decodes a hexadecimally encoded binary string</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.sodium-hex2bin" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">sodium_hex2bin</h1>
|
|
<p class="verinfo">(PHP 7 >= 7.2.0)</p><p class="refpurpose"><span class="refname">sodium_hex2bin</span> — <span class="dc-title">Decodes a hexadecimally encoded binary string</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.sodium-hex2bin-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>sodium_hex2bin</strong></span>
|
|
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hex</code></span>
|
|
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$ignore</code></span>
|
|
] ) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Decodes a hexadecimally encoded binary string.
|
|
</p>
|
|
<p class="para">
|
|
Like <span class="function"><a href="sodium_bin2hex.html" class="function">sodium_bin2hex()</a></span>, <span class="function"><strong>sodium_hex2bin()</strong></span>
|
|
is resistant to side-channel attacks while <span class="function"><a href="hex2bin.html" class="function">hex2bin()</a></span> is not.
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.sodium-hex2bin-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">hex</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Hexadecimal representation of data.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">ignore</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Optional string argument for characters to ignore.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.sodium-hex2bin-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns the binary representation of the given <code class="parameter">hex</code> data.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |