Example #1
0
function _BF_SUB32($x, $y)
{
    return _BF_ADD32($x, -$y);
}
 private function decrypt($encrypted_password)
 {
     $encrypted_password = trim($encrypted_password);
     if (!strlen($encrypted_password)) {
         return '';
     }
     $encrypted_password = int3tostr($encrypted_password);
     $c = 0x12;
     for ($i = 0; $i < strlen($encrypted_password); $i++) {
         $k = ord($encrypted_password[$i]);
         $encrypted_password[$i] = chr(ord($encrypted_password[$i]) ^ $c >> 8);
         $c = _BF_ADD32($k, $c);
         $c = _BF_ADD32($c, $c);
         $c = _BF_ADD32($c, 4);
     }
     return $encrypted_password;
 }