import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class MyEclipseGen {
private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself.";
public String getSerial(String userId, String licenseNum) {
Calendar cal = Calendar.getInstance();
// 过期时间为3年后的昨天
cal.add(Calendar.YEAR, 3);
cal.add(Calendar.DAY_OF_YEAR, -1);
NumberFormat nf = new DecimalFormat("000");
licenseNum = nf.format(Integer.valueOf(licenseNum));
String verTime = new StringBuilder("-").append(
new SimpleDateFormat("yyMMdd").format(cal.getTime()))
.append("0").toString();
String type = "YE3MP-";
String need = new StringBuilder(userId.substring(0, 1)).append(type)
.append("300").append(licenseNum).append(verTime).toString();
String dx = new StringBuilder(need).append(LL).append(userId)
.toString();
int suf = this.decode(dx);
String code = new StringBuilder(need).append(String.valueOf(suf))
.toString();
return change(code);
}
private int decode(String s) {
char[] ac = s.toCharArray();
int i = 0;
for (int j=0; j<ac.length; j++) {
i = (31 * i) + ac[j];
}
return Math.abs(i);
}
private String change(String s) {
byte[] abyte0 = s.getBytes();
char[] ac = new char[s.length()];
for (int i=0; i<abyte0.length; i++) {
int j = abyte0[i];
if ((j >= '0') && (j <= '9')) {
j = (j - '0' + 5) % 10 + '0';
} else if ((j >= 'A') && (j <= 'Z')) {
j = ((j - 'A') + 13) % 26 + 'A';
} else if ((j >= 'a') && (j <= 'z')) {
j = ((j - 'a') + 13) % 26 + 'a';
}
ac[i] = (char) j;
}
return String.valueOf(ac);
}
public MyEclipseGen() {
super();
}
public static void main(String[] args) throws UnsupportedEncodingException {
try {
System.out.println("please input register name:");
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));
String userId = null;
userId = reader.readLine();
MyEclipseGen myeclipsegen = new MyEclipseGen();
String res = myeclipsegen.getSerial(userId, "5");
System.out.println("Serial:" + res);
reader.close();
} catch (IOException ex) {
}
}
}
分享到:
相关推荐
编译后就是注册机,源代码可以自己改。。。值得研究
MyEclipse8.6 注册机 算法 Java;
Myeclipse 8.6 注册机算法源码,在MyEclipse中导入后运行就能得到3年的注册码
Myeclipse注册机 适用于各种版本 采用算法注册 自己用的东西 分享给大家!~~
之前发布在VeryCD上,现在网上流传的好像都是这个版本,现在连同源代码一起发上来,注册核心算法是网上扣的,内附简单说明。
10.5版破解基本上同10.1版,但破解密钥和算法有所变化,经过本人的探讨和研究,更新了Crack程序,同时支持10.5和10.1版本的破解.下面是破解步骤: 1. 输入Usercode, 点击'SystemId...', 生成SystemId 2. 点击'Active', ...
MyEclipse注册算法代码:是JAR包,比注册机好用。而且比注册机破解的时间长。经过测试非常好用。真佩服写这个算法的人。感谢他。
MyEclipse7.0 \7.5\8.0\8.5通用注册机,对于每个版本均通过测试,其实也就是说可以适用于MyEclipse的任何版本,如果未来MyEclipse公司加密算法不变的话,也适用于将来的9.0、9.5。。。
10.5版破解基本上同10.1版,但破解密钥和算法有所变化, 经过本人的探讨和研究,更新了Crack程序,同时支持10.5和10.1版本的破解. 下面是破解步骤: 1. 输入Usercode, 点击'SystemId...', 生成SystemId 2. 点击'...
最新的资源,精确地算法,结果绝对能用,很实用的
MyEclipse 8.X 注册算法 , MyEclipse 8.X 注册机
MyEclipse2015Stable2.0&1.0软件+补丁+注册机+步骤(2015.08.20) 最新软件+破解文件,完美验证通过
前几天有位不知名友友联系我,说他的MyEclipse升级到10.7版本,用我之前发布的MyEclipse通用注册机激活失败,问我有没有最新版本的破解程序。所以这几天我利用空余时间,分析了一下新版本的注册激活机理,发现破解...
在网上的到的myeclipse 8.0GA KEY GEN的算法,我给打了JAR包 方便使用!
所以内存注册机的使用方法都是:先开注册机,用注册机载入软件。然后你随便输入一个注册码,按确定。软件会提示注册失败,因为你的注册码是错误的。不过这个时候正确的注册码已经被内存注册机截取到了
前几天有位不知名友友联系我,说他的MyEclipse升级到10.7版本,用我之前发布的MyEclipse通用注册机激活失败,问我有没有最新版本的破解程序。所以这几天我利用空余时间,分析了一下新版本的注册激活机理,发现破解...
楚) 软件设计师内部培训PPT 经典教材《算法导论》第二版中文版,全世界唯一...Myeclipse9.0 正式版注册机 X86亲测WIN764请慎选 游戏编程方面的学习资料(包括新版教材的电子教案和所有源程序代码) delphi 半透明