forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
56 lines
4.9 KiB
HTML
56 lines
4.9 KiB
HTML
<a name="dli_08_15098"></a><a name="dli_08_15098"></a>
|
|
|
|
<h1 class="topictitle1">Hash Functions</h1>
|
|
<div id="body0000001262815706">
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_08_15098__table1271019349144" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Hash functions</caption><thead align="left"><tr id="dli_08_15098__row13710103412147"><th align="left" class="cellrowborder" valign="top" width="30.43%" id="mcps1.3.1.2.3.1.1"><p id="dli_08_15098__p971013419141">Hash Function</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.57%" id="mcps1.3.1.2.3.1.2"><p id="dli_08_15098__p14710193414141">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_08_15098__row6711133461411"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.3.1.1 "><p id="dli_08_15098__p371153461410">MD5(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.3.1.2 "><p id="dli_08_15098__p22412118198">Returns the MD5 hash value of the string as a 32-digit hexadecimal string and returns <strong id="dli_08_15098__b69454501499">NULL</strong> if the string is <strong id="dli_08_15098__b19111553491">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15098__row8711163419149"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.3.1.1 "><p id="dli_08_15098__p14711133431416">SHA1(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.3.1.2 "><p id="dli_08_15098__p829341912190">Returns the SHA-1 hash value of the string as a 40-digit hexadecimal string and returns <strong id="dli_08_15098__b4433174019509">NULL</strong> if the string is <strong id="dli_08_15098__b389624217503">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15098__row3711113419140"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.3.1.1 "><p id="dli_08_15098__p137113342140">SHA224(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.3.1.2 "><p id="dli_08_15098__p0142182520197">Returns the SHA-224 hash value of the string as a 56-digit hexadecimal string and returns <strong id="dli_08_15098__b206114148518">NULL</strong> if the string is <strong id="dli_08_15098__b9661414155114">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15098__row9711173421416"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.3.1.1 "><p id="dli_08_15098__p15711193471411">SHA256(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.3.1.2 "><p id="dli_08_15098__p155491129151915">Returns the SHA-256 hash value of the string as a 64-digit hexadecimal string and returns <strong id="dli_08_15098__b1395155211518">NULL</strong> if the string is <strong id="dli_08_15098__b1839775275110">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15098__row1171115343142"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.3.1.1 "><p id="dli_08_15098__p15711143417144">SHA384(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.3.1.2 "><p id="dli_08_15098__p879393441910">Returns the SHA-384 hash value of the string as a 96-digit hexadecimal string and returns <strong id="dli_08_15098__b129141117195217">NULL</strong> if the string is <strong id="dli_08_15098__b39178179522">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15098__row1371163418149"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.3.1.1 "><p id="dli_08_15098__p871173410147">SHA512(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.3.1.2 "><p id="dli_08_15098__p18697164011915">Returns the SHA-512 hash value of the string as a 128-digit hexadecimal string and returns <strong id="dli_08_15098__b4485123510521">NULL</strong> if the string is <strong id="dli_08_15098__b134897356529">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15098__row19711153441418"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.3.1.1 "><p id="dli_08_15098__p147112347145">SHA2(string, hashLength)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.3.1.2 "><p id="dli_08_15098__p15238124618191">Uses the SHA-2 series hash function (SHA-224, SHA-256, SHA-384, or SHA-512) to return the hash value. The first parameter is the string to be hashed, and the second parameter <strong id="dli_08_15098__b181317345536">hashLength</strong> is the length of the result in bits (224, 256, 384, or 512). Returns <strong id="dli_08_15098__b41514490536">NULL</strong> if <strong id="dli_08_15098__b1626191915419">string</strong> or <strong id="dli_08_15098__b1987759115318">hashLength</strong> is <strong id="dli_08_15098__b639091195414">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_08_15085.html">Built-In Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|