Package Pa;
Public class test
{
Public static void encode (byte [] In, byte [] Out, int password)
{
Int Len = in. length;
Int seed = PASSWORD ^ 0xeee3a8df;
For (INT I = 0; I <Len; ++ I ){
Byte A = (byte) (in [I] ^ seed) >>> 3 );
Byte B = (byte) (INT) in [I]) <12) ^ seed) >>>( 12-5 ));
A & = 0x1f;
B & = 0xe0;
Out [I] = (byte) (a | B );
Seed = (seed <7) ^ seed ^ out [I]) + 84723701 );
}
}
Public static void decode (byte [] In, byte [] Out, int password)
{
Int Len = in. length;
Int seed = PASSWORD ^ 0xeee3a8df;
For (INT I = 0; I <Len; ++ I ){
// Fill the code here
Byte A = (byte) (in [I] & 0x1f );
A = (byte) (a <3 );
A = (byte) (a ^ seed );
A = (byte) (A & 248 );
Byte B = (byte) (in [I] & 0xe0 );
Int temp = (INT) B;
Temp = temp <7;
Temp = temp ^ seed;
Temp = temp> 12;
B = (byte) temp;
B = (byte) (B & 7 );
Out [I] = (byte) (a | B );
Seed = (seed <7) ^ seed ^ in [I]) + 84723701 );
}
}
Public static void main (string [] ARGs) throws exception
{
Int Password = 0xf6be2404;
Byte [] buf1 = {98,127, 63, 59,-43,103,-91, 80, 88,-60,-39, 18,-81,-10,101,-23, -24,-96,-5, 56, 47, 50,-1,-69,-85, 77,-123, 35, 81,104,-67,110, 97, 51, 42, 62,-108,-88,-109,-45, 63,-81,
106,-118, 86,-88, 31,-120,107,106,-104,114,-73, 30, 96, 97, 48,-53,114,-45,-86, 44, -62, 1,-53, 81, 90,-7, 19,-57,109, 86 ,};
Byte [] buf2 = new byte [buf1.length];
Decode (buf1, buf2, password );
System. Out. println (new string (buf2, "GBK "));
System. Out. Print ("end ");
}
}
Sogou browser is currently the fastest, most stable, safest, and most powerful "dual-core" browser !!