View Single Post
Old 15.06.2007, 07:53   #3
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

Actually it's wrong, and as I see noone ever noticed that... :P As some of you know this function was sometimes returning wrong hash (too long, and with wrong data).
Problem is that someone put /65535 instead of /65536 and after that all people were using it without checking.

Those are correct lines:
Code:
$key[3] = intval(($one - $key[4] * 16777216) / 65536);
$key[7] = intval(($two - $key[8] * 16777216) / 65536);
$key[11] = intval(($three - $key[12] * 16777216) / 65536);
$key[15] = intval(($four - $key[16] * 16777216) / 65536);
Now it all finally works correctly ;P

Wrong code is for example used in:
https://postpacific.loc-online.com/f...hlight=encrypt
https://postpacific.loc-online.com/f...hlight=encrypt
https://postpacific.loc-online.com/f...hlight=encrypt
L2Tools 1.6 L2Control Panel.
ateh is offline