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>
65 lines
6.8 KiB
HTML
65 lines
6.8 KiB
HTML
<a name="dli_08_0435"></a><a name="dli_08_0435"></a>
|
|
|
|
<h1 class="topictitle1">Hash Functions</h1>
|
|
<div id="body8662426"><div class="section" id="dli_08_0435__en-us_topic_0000001262815706_section2996472141"><h4 class="sectiontitle">Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_08_0435__en-us_topic_0000001262815706_table1271019349144" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Hash functions</caption><thead align="left"><tr id="dli_08_0435__en-us_topic_0000001262815706_row13710103412147"><th align="left" class="cellrowborder" valign="top" width="30.43%" id="mcps1.3.1.2.2.3.1.1"><p id="dli_08_0435__en-us_topic_0000001262815706_p971013419141">Hash Functions</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.57%" id="mcps1.3.1.2.2.3.1.2"><p id="dli_08_0435__en-us_topic_0000001262815706_p14710193414141">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_08_0435__en-us_topic_0000001262815706_row6711133461411"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_0435__en-us_topic_0000001262815706_p371153461410">MD5(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_0435__en-us_topic_0000001262815706_p1771113342144">Returns the MD5 hash of string as a string of 32 hexadecimal digits.</p>
|
|
<p id="dli_08_0435__en-us_topic_0000001262815706_p137022018202">Returns <strong id="dli_08_0435__en-us_topic_0000001262815706_b15933504245034">NULL</strong> if <strong id="dli_08_0435__en-us_topic_0000001262815706_b18537442995034">string</strong> is <strong id="dli_08_0435__en-us_topic_0000001262815706_b12520122145034">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0435__en-us_topic_0000001262815706_row8711163419149"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_0435__en-us_topic_0000001262815706_p14711133431416">SHA1(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_0435__en-us_topic_0000001262815706_p157111234131411">Returns the SHA-1 hash of string as a string of 40 hexadecimal digits.</p>
|
|
<p id="dli_08_0435__en-us_topic_0000001262815706_p6107879213">Returns <strong id="dli_08_0435__en-us_topic_0000001262815706_b6711381315034">NULL</strong> if <strong id="dli_08_0435__en-us_topic_0000001262815706_b5862710365034">string</strong> is <strong id="dli_08_0435__en-us_topic_0000001262815706_b1581918175034">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0435__en-us_topic_0000001262815706_row3711113419140"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_0435__en-us_topic_0000001262815706_p137113342140">SHA224(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_0435__en-us_topic_0000001262815706_p471173418146">Returns the SHA-224 hash of string as a string of 56 hexadecimal digits.</p>
|
|
<p id="dli_08_0435__en-us_topic_0000001262815706_p480614530213">Returns <strong id="dli_08_0435__en-us_topic_0000001262815706_b16814299085034">NULL</strong> if <strong id="dli_08_0435__en-us_topic_0000001262815706_b7057256745034">string</strong> is <strong id="dli_08_0435__en-us_topic_0000001262815706_b12340234655034">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0435__en-us_topic_0000001262815706_row9711173421416"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_0435__en-us_topic_0000001262815706_p15711193471411">SHA256(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_0435__en-us_topic_0000001262815706_p13711163471413">Returns the SHA-256 hash of string as a string of 64 hexadecimal digits.</p>
|
|
<p id="dli_08_0435__en-us_topic_0000001262815706_p084723516228">Returns <strong id="dli_08_0435__en-us_topic_0000001262815706_b401689625034">NULL</strong> if <strong id="dli_08_0435__en-us_topic_0000001262815706_b17129983625034">string</strong> is <strong id="dli_08_0435__en-us_topic_0000001262815706_b13964003405034">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0435__en-us_topic_0000001262815706_row1171115343142"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_0435__en-us_topic_0000001262815706_p15711143417144">SHA384(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_0435__en-us_topic_0000001262815706_p14711143471412">Returns the SHA-384 hash of string as a string of 96 hexadecimal digits.</p>
|
|
<p id="dli_08_0435__en-us_topic_0000001262815706_p122151810142315">Returns <strong id="dli_08_0435__en-us_topic_0000001262815706_b6365403585034">NULL</strong> if <strong id="dli_08_0435__en-us_topic_0000001262815706_b19090821595034">string</strong> is <strong id="dli_08_0435__en-us_topic_0000001262815706_b686398345034">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0435__en-us_topic_0000001262815706_row1371163418149"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_0435__en-us_topic_0000001262815706_p871173410147">SHA512(string)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_0435__en-us_topic_0000001262815706_p2711113420142">Returns the SHA-512 hash of string as a string of 128 hexadecimal digits.</p>
|
|
<p id="dli_08_0435__en-us_topic_0000001262815706_p61846508231">Returns <strong id="dli_08_0435__en-us_topic_0000001262815706_b7201088995034">NULL</strong> if <strong id="dli_08_0435__en-us_topic_0000001262815706_b16452038045034">string</strong> is <strong id="dli_08_0435__en-us_topic_0000001262815706_b7341727645034">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0435__en-us_topic_0000001262815706_row19711153441418"><td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_0435__en-us_topic_0000001262815706_p147112347145">SHA2(string, hashLength)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.57%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_0435__en-us_topic_0000001262815706_p5711634151417">Returns the hash using the SHA-2 family of hash functions (SHA-224, SHA-256, SHA-384, or SHA-512).</p>
|
|
<p id="dli_08_0435__en-us_topic_0000001262815706_p660212418258">The first argument string is the string to be hashed and the second argument hashLength is the bit length of the result (224, 256, 384, or 512).</p>
|
|
<p id="dli_08_0435__en-us_topic_0000001262815706_p10731203762614">If either argument is NULL, the result will also be NULL.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_08_0426.html">Built-In Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|