免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2210 | 回复: 4
打印 上一主题 下一主题

谁能帮我把这个JAVA加密方法转成PHP的 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-01 10:20 |只看该作者 |倒序浏览
package sfol;

import common.b;
import java.util.Calendar;
import java.util.Date;
import javax.microedition.io.ConnectionNotFoundException;
import javax.microedition.lcdui.Font;

// Referenced classes of package sfol:
// SinaPalmlet

public final class z
{

public z()
{
}

static String a(String s, String s1)
{
String s2;
String s3;
String s4;
byte abyte0[];
int i;
s2 = "8UiDJfre5KgTmB45";
s3 = null;
s4 = null;
abyte0 = null;
try
{
abyte0 = s1.getBytes("UTF-8");
s4 = new String(abyte0);
}
catch(Exception _ex) { }
s3 = "";
i = 0;
goto _L1
_L9:
char c1;
char c2;
s3 = s3 + "%";
c1 = (char)(abyte0 >> 4 & 0xf);
c2 = (char)(abyte0 & 0xf);
if(c1 >= '\n') goto _L3; else goto _L2
_L2:
48;
c1;
goto _L4
_L3:
c1 - 10;
65;
_L4:
JVM INSTR iadd ;
(char);
char c3;
c3;
s3 = s3 + c3;
if(c2 >= '\n') goto _L6; else goto _L5
_L5:
48;
c2;
goto _L7
_L6:
c2 - 10;
65;
_L7:
JVM INSTR iadd ;
(char);
c3;
s3 = s3 + c3;
i++;
_L1:
if(i < abyte0.length) goto _L9; else goto _L8
_L8:
s3 = s3 + "&d=";
s3 = s3 + b.a(s2 + s + s4);
goto _L10
JVM INSTR dup ;
Exception exception;
exception;
printStackTrace();
_L10:
return s3;
}问题补充:接上:

(date);
return calendar.get(2) + 1;
}

public static int b()
{
Date date = new Date(System.currentTimeMillis());
Calendar calendar;
(calendar = Calendar.getInstance()).setTime(date);
return calendar.get(1) - 2000;
}

public static int c()
{
Date date = new Date(System.currentTimeMillis());
Calendar calendar;
(calendar = Calendar.getInstance()).setTime(date);
return calendar.get(5);
}

public static void a(String s, int i)
{
if(i == 1)
{
a(s);
return;
}
if(i == 6)
{
SinaPalmlet.f().k();
return;
}
if(i == 7)
{
SinaPalmlet.f().j();
return;
}
if(i == 9)
SinaPalmlet.f().i();
}
}

论坛徽章:
0
2 [报告]
发表于 2008-01-01 14:34 |只看该作者
麻烦,你先找做这个的人把思路列出来!

论坛徽章:
0
3 [报告]
发表于 2008-01-02 14:35 |只看该作者
java里有goto?

论坛徽章:
0
4 [报告]
发表于 2008-01-03 10:22 |只看该作者
原帖由 caualex 于 2008-1-2 14:35 发表
java里有goto?

java里没有goto,楼主这段代码可能是c#的。

论坛徽章:
0
5 [报告]
发表于 2008-01-03 10:49 |只看该作者
楼主的是不是反编译出来的..
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP