// 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

解决方案 »

  1.   

    $times 也是保存在数据里的吧~~
      

  2.   

    f(ucking) u(ncrackable) e(ncryption) function
      

  3.   

    不仅各种加密hash函数都搞上了,而且还要多轮加密,真是恐怖。
      

  4.   

     f(ucking) u(ncrackable) e(ncryption) 
      

  5.   

    跑这么多圈
    最终也不是一
    $hash=hash("sha512", $hash);
    结果么……
      

  6.   

    echo fue('hello world',strtotime('now'));加密一个'hello world',结果死机了,悲催。没看见 for($i=$times;$i>0;$i--)这写strtotime('now')变成了超级死循环。弱弱的问一下,那个$times指的是什么?
      

  7.   

    $times是次数啊,输入参数里面的
    for循环的--用法而已,相当于for($i=0; $i<$times; $i++)
      

  8.   

    虽然都叫time,但这个不是指时间,strtotime('now')的结果是1375063003左右,相当于你要循环13亿次
      

  9.   

    最多叫终极散列功能,不能解密的还叫什么加密啊。其实这么多过程真是无意义// sha256... (one more)
            $hash=hash("sha256", $hash);
             
    // sha512
            $hash=hash("sha512", $hash);有这2句就可以了。