package Default;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
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 = "YE3MS-";
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, "5");
System.out.println("Serial:" + res);
reader.readLine();
} catch (IOException ex) {
}
}
}
分享到:
相关推荐
根据提供的信息,我们可以详细探讨与"MyEclipse for Spring 9.0"相关的知识点,包括其功能、使用场景以及如何下载安装等内容。 ### MyEclipse for Spring 9.0概述 MyEclipse是一款非常受欢迎的集成开发环境(IDE)...
根据提供的文件信息,“myeclipse for spring 8.6”主要涉及的是MyEclipse这款集成开发环境(IDE)与Spring框架结合使用的版本介绍及相关知识点。接下来将从几个方面详细阐述这些知识点。 ### 一、MyEclipse简介 ...
5. **开始使用**:一旦激活成功,您可以立即开始使用MyEclipse for Spring的所有功能,包括Spring框架的集成开发环境,享受更高效、更便捷的编程体验。 总之,MyEclipse for Spring环境的注册码是确保软件合法使用...
MyEclipse For Spring 8.6.15
MyEclipse for spring8.6 注册机 有效期到2017年
myeclipse 10.1-10.5(myeclipse for spring 10.1)破解,已成功破解 1. 输入Usercode, 点击'SystemId...', 生成SystemId 2. 点击'Active', 生成LICENSE_KEY, ACTIVATION_CODE, ACTIVATION_KEY 3. 点击菜单'Tools -...
MyEclipse For Spring 8.6.5
【标题】"MyEclipse for Spring Demo Project" 是一个基于MyEclipse集成开发环境和Spring框架的示例项目,旨在帮助开发者了解如何在MyEclipse中配置和开发Spring应用程序。这个项目展示了如何利用MyEclipse的工具集...
MyEclipse For Spring 8.6.4
MyEclipse For Spring 8.6.3
MyEclipse For Spring 8.6.6
MyEclipse For Spring 8.6.7
MyEclipse For Spring 8.6
使用myeclipse8.6ForSpring封装的注册机工具,直接java -jar 后输入一个注册名即可。
MyEclipse For Spring 8.6
myeclipse for spring 8.6注册码
MyEclipse For Spring 8.6.15
MyEclipse For Spring 8.6.10
MyEclipse For Spring 8.6.17
MyEclipse For Spring 8.6.10