mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 15:49:57 +09:00
mysql old_password함수 구현 수정. bit 연산의 오류발생을 수정함
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1943 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c399c27605
commit
c6030c3c84
1 changed files with 6 additions and 1 deletions
|
|
@ -1154,7 +1154,12 @@
|
||||||
$nr2 += ($nr2 << 8) ^ $nr;
|
$nr2 += ($nr2 << 8) ^ $nr;
|
||||||
$add += $tmp;
|
$add += $tmp;
|
||||||
}
|
}
|
||||||
$nr2 += 0x80000000;
|
$result1 = sprintf("%08lx", $nr & ((1 << 31) -1));
|
||||||
|
$result2 = sprintf("%08lx", $nr2 & ((1 << 31) -1));
|
||||||
|
|
||||||
|
if($result1 == '80000000') $nr += 0x80000000;
|
||||||
|
if($result2 == '80000000') $nr2 += 0x80000000;
|
||||||
|
|
||||||
return sprintf("%08lx%08lx", $nr, $nr2);
|
return sprintf("%08lx%08lx", $nr, $nr2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue