// f(ucking) u(ncrackable) e(ncryption) function by BlackHatDBL (www.netforme.net)
function fue($hash,$times) {
// Execute the encryption(s) as many times as the user wants
for($i=$times;$i>0;$i--) {
// Encode with base64...
$hash=base64_encode($hash);
// and md5...
$hash=md5($hash);
// sha1...
$hash=sha1($hash);
// sha256... (one more)
$hash=hash("sha256", $hash);
// sha512
$hash=hash("sha512", $hash);
}
// Finaly, when done, return the value
return $hash;
}
加密PHP
最终也不是一
$hash=hash("sha512", $hash);
结果么……
for循环的--用法而已,相当于for($i=0; $i<$times; $i++)
$hash=hash("sha256", $hash);
// sha512
$hash=hash("sha512", $hash);有这2句就可以了。