package Gen;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class MyEclipseKeyGen {
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, String type) {
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 need = new StringBuilder(userId.substring(0, 1)).append(type).append("300").append(licenseNum).append(verTime).toString();
String dx = new StringBuilder(need).append(MyEclipseKeyGen.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 MyEclipseKeyGen() {
super();
}
public static void main(String[] args) {
try {
// MyEclipse Standard Subscription---------YE2MY
// MyEclipse Professional Subscription----YE3MP
// MyEclipse Blue Subscription---------------YE3MB
// MyEclipse for Spring Subscription--------YE3MS
String type = "YE3MP-";
System.out.println("please input register name:");
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String userId = null;
userId = reader.readLine();
MyEclipseKeyGen myeclipsegen = new MyEclipseKeyGen();
String res = myeclipsegen.getSerial(userId, "999", type);
System.out.println("Serial:" + res);
reader.readLine();
} catch (IOException ex) {
}
}
}
分享到:
相关推荐
myeclipse-9.0M1-win32.zip.017
本文将围绕“MyEclipse 6.0-7.0注册码”这一主题,详细介绍MyEclipse的基本概念、版本发展以及激活方法等内容。 ### MyEclipse简介 MyEclipse是一款专为Java开发者设计的强大开发工具,它不仅支持Java开发,还提供...
myeclipse-9.0M1-win32.part01.rar
myeclipse-9.0M1-win32.zip.011
MyEclipse8.6-9.0教程_安装+注册码+汉化+破解+中文+优化(全)
标题 "myEclipse 6.5 -9.0 注册码自动生成,你也可以。" 暗示了这是一个关于myEclipse IDE的注册码生成技术的分享,可能涉及到破解或者授权验证规避的方法。myEclipse是基于Eclipse的一个集成开发环境,主要用于Java...
历史最简单的破解方法。最全的方法。MyEclipse 8.5-9.0 破解方法
java开发工具myeclipse9.0
java开发工具myeclipse9.0
根据提供的文件信息,本文将详细解释与"MyEclipse 6.0注册码"相关的知识点,包括MyEclipse软件介绍、注册码的使用方法及其注意事项。 ### MyEclipse 6.0简介 MyEclipse是一款非常受欢迎的Java集成开发环境(IDE)...
### myEclipse 6.0 注册码解析与软件概述 #### 一、myEclipse 6.0 概述 myEclipse 是一款非常强大的集成开发环境(Integrated Development Environment,IDE),它主要针对Java EE应用程序开发而设计。myEclipse ...
myeclipse-9.0M1-win32.zip.001
myeclipse-9.0M1-win32.zip.006
MyEclipse 7.5-8.5通用注册码
在探讨“myeclipse 6.0 注册码”这一主题时,我们首先需要了解MyEclipse是什么,以及注册码在其使用过程中的作用。MyEclipse是基于Eclipse平台的一款功能强大的集成开发环境(IDE),它主要面向Java、JEE等开发人员...
myeclipse-9.0M1-win32.zip.002
myeclipse-9.0M1-win32.zip.014
myeclipse-9.0M1-win32.zip.012
myeclipse-9.0M1-win32.zip.016
myeclipse-9.0M1-win32.zip.013