package test;
import java.io.*;
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) {
java.util.Calendar cal = java.util.Calendar.getInstance();
cal.add(1, 3);
cal.add(6, -1);
java.text.NumberFormat nf = new java.text.DecimalFormat("000");
licenseNum = nf.format(Integer.valueOf(licenseNum));
String verTime = new StringBuilder("-").append(new java.text.
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 this.change(code);
}
private int decode(String s) {
int i;
char[] ac;
int j;
int k;
i = 0;
ac = s.toCharArray();
j = 0;
k = ac.length;
while (j < k) {
i = (31 * i) + ac[j];
j++;
}
return Math.abs(i);
}
private String change(String s) {
byte[] abyte0;
char[] ac;
int i;
int k;
int j;
abyte0 = s.getBytes();
ac = new char[s.length()];
i = 0;
k = abyte0.length;
while (i < k) {
j = abyte0[i];
if ((j >= 48) && (j <= 57)) {
j = (((j - 48) + 5) % 10) + 48;
} else if ((j >= 65) && (j <= 90)) {
j = (((j - 65) + 13) % 26) + 65;
} else if ((j >= 97) && (j <= 122)) {
j = (((j - 97) + 13) % 26) + 97;
}
ac[i] = (char) j;
i++;
}
return String.valueOf(ac);
}
public MyEclipseGen() {
super();
}
public static void main(String[] args) {
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, "20");
System.out.println("Serial:" + res);
reader.readLine();
} catch (IOException ex) {
}
}
}
运行该代码,在控制台中会出现:
please input register name:
×××××(你的name)
即生成序列号:
please input register name:
yan2009
Serial:lLR8ZC-855575-6754795661317731
分享到:
相关推荐
MyEclipse 9.X破解工具,已经验证过,请放心使用
MyEclipse 6.x 最新注册码(有效期至2015年): 注册后: 最新myeclipse6.6注册码 Subscriber: cd-shangguan Product ID: E3MP (MyEclipse Professional Subscription) License version: 3.0 Full Maintenance ...
MyEclipse.8.0.M1注册码 MyEclipse.8.0.M1注册码 MyEclipse.8.0.M1注册码
如果某个操作系统systemid不对,打开myeclipse---myeclipse----Subscription Infomation--输入用户名 激活码----activate now ---web active---- 会看到网址里面有参数 sytemId * publicKey.bytes 没有替换,请...
myeclipse.8.6.注册码,有效期到2011年12月
MyEclipse,是在eclipse 基础上加上自己的插件开发而成的功能强大的企业级集成开发环境,主要用于Java、Java EE以及移动应用的开发。MyEclipse的功能非常强大,支持也十分广泛,尤其是对各种开源产品的支持相当不错...
MyEclipse 8.6 注册码.txtMyEclipse 8.6 注册码.txtMyEclipse 8.6 注册码.txtMyEclipse 8.6 注册码.txt
直接复制myeclipse中运行就可以了。
将包导入MyEclipse,运行: 在控制台中会出现: please input register name: ×××××(输入你的name,随便什么) 即生成序列号: ××××× ××××× ××××× 进入myeclipse,在菜单中选择 Myeclipse->...
Myeclipse注册码Myeclipse注册码Myeclipse注册码Myeclipse注册码Myeclipse注册码Myeclipse注册码Myeclipse注册码Myeclipse注册码Myeclipse注册码
MyEclipse5.5.xGA的注册码, 不用为破解不了发愁
Myeclipse 8.x 注册码,序列号,破解 两种方式注册 运行.exe或.java
免费获取MyEclipse注册码......
6.0的:Subscriber: www.1cn.bizSubscriber Code: jLR8ZC-655355-5450765457039125或者Subscriber: www.1cn.bizSubscriber Code: jLR7ZL-655355-5450755330522962 <br>MyEclipse 6.0.1 注册码Subscriber: ...
Subscriber: ...Product ID: E3MP (MyEclipse Professional Subscription) License version: 3.0 Full Maintenance Included Subscription expiration date (YYYYMMDD): 20150130 Number of licenses: 20
myeclipse8.0注册码 myeclipse8.0注册码 myeclipse8.0注册码 myeclipse8.0注册码 myeclipse8.0注册码 myeclipse8.0注册码myeclipse8.0注册码
1.本破解工具可以破解MyEclipse10的所有版本,最新测试版本到MyEclipse10.7 ,MyEclipse 2013也可以破解,均测试有效,欢迎拍砖! 2.安装好MyEclipse10.X后请先看工具下的“说明.txt”,再看“Myeclipse 10 激活详解...
MyEclipse8.0GA注册码MyEclipse8.0GA注册码MyEclipse8.0GA注册码MyEclipse8.0GA注册码
步骤: 1.下载安装后先不要运行,取消最后一步的勾选 2.path下所有的复制到安装目录下的plugins中 3.运行bat文件,选择bule(具体可看图片) 4.输入usercode,点击systemId(有的一次生成不了,可以多点击几次) 5....
MyEclipse.9.0_注册码MyEclipse.9.0_注册码