Home  >  Article  >  Backend Development  >  在主页看到一个终极加密功能

在主页看到一个终极加密功能

WBOY
WBOYOriginal
2016-06-13 12:39:55951browse

在首页看到一个终极加密功能


<br />
// f(ucking) u(ncrackable) e(ncryption) function by BlackHatDBL (www.netforme.net)<br />
function fue($hash,$times) {<br />
    <br />
// Execute the encryption(s) as many times as the user wants<br />
    for($i=$times;$i>0;$i--) {<br />
        <br />
// Encode with base64...<br />
        $hash=base64_encode($hash);<br />
        <br />
// and md5...<br />
        $hash=md5($hash);<br />
        <br />
// sha1...<br />
        $hash=sha1($hash);<br />
        <br />
// sha256... (one more)<br />
        $hash=hash("sha256", $hash);<br />
        <br />
// sha512<br />
        $hash=hash("sha512", $hash);<br />
 <br />
    }<br />
    <br />
// Finaly, when done, return the value<br />
    return $hash;<br />
}<br />

加密 PHP
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn