import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class Myeclipse5_5_0_KeyMaker
{
private static final String L = "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 static void main(String[] args)
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String userId = null;
int intLicenseNum = 1;
String strLicenseNum = null;
boolean bProFlag = true;
String strProFlag = null;
while ((userId == null) || ("".equals(userId.trim()))) {
System.out.print("用户名: ");
try {
userId = br.readLine();
}
catch (IOException localIOException1)
{
}
}
System.out.print("注册码可用的用户数量(默认 1, 最大 999): ");
try {
strLicenseNum = br.readLine();
}
catch (IOException localIOException2)
{
}
Object nf = new DecimalFormat("000");
if ((strLicenseNum == null) || ("".equals(strLicenseNum.trim())))
strLicenseNum = ((NumberFormat)nf).format(intLicenseNum);
else {
strLicenseNum = ((NumberFormat)nf).format(Integer.parseInt(strLicenseNum));
}
System.out.print("个人版 或 标准版(默认 个人版, n 标准版): ");
try {
strProFlag = br.readLine();
}
catch (IOException localIOException3) {
}
if ((strProFlag != null) && (!("".equals(strProFlag.trim())))) {
bProFlag = false;
}
Calendar cal = Calendar.getInstance();
cal.add(1, 2);
cal.add(6, -1);
SimpleDateFormat sdf = new SimpleDateFormat("yyMMdd");
String need = userId.substring(0, 1) + "Y" +
((bProFlag) ? "E3MP" : "E2MY") + "-100" + strLicenseNum + "-" +
sdf.format(cal.getTime()) + "0";
String dx = need + "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." + userId;
int suf = decode(dx);
String code = need + suf;
System.out.println("注册码: " + change(code));
}
static int decode(String s) {
int i = 0;
char[] ac = s.toCharArray();
int j = 0;
for (int k = ac.length; j < k; ++j)
i = 31 * i + ac[j];
return Math.abs(i);
}
static String change(String s) {
if ((s == null) || (s.length() == 0))
return s;
byte[] abyte0 = s.getBytes();
char[] ac = new char[s.length()];
int i = 0;
for (int k = abyte0.length; i < k; ++i) {
int 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;
}
return String.valueOf(ac);
}
}
分享到:
相关推荐
解压后找到MyEclipseGen.java文件,在myeclipse直接执行后,控制台自己输入用户名,回车,注册码闪亮登场。
myEclipse 注册码生成 这是Java代码 运行后即可生产注册码
NULL 博文链接:https://shangweiqiang24.iteye.com/blog/935261
生成myeclipse注册码的简单代码..
MyEclipse注册码生成(Java代码),此代码经本人及他人多次测试,调试。 使用方法: 1.建立一个Java Project,项目名任意取就可以; 2.建立一个名字为:MyEclipseGen的类文件,内容见附件; 3.运行该代码,在控制台...
MyEclipse注册码生成类代码,可以生成MyEclipse 各种版本的注册码,什么时候要马上生成即可。
myeclipse8.5 注册码生成程序. 我的myeclipse一直使用各种的注册码生成程序. 我目前使用的就是这个 注册码 生成程序. 可以使用. Decompiling this copyrighted software is a violation of both your license ...
通用的MyEclipse激活码生成代码,只需要将该java代码编译运行,然后在控制台输入你要注册的用户名,然后回车后就会生成注册码,在MyEclipse里面的MyEclipse菜单下选择subscription information 选项,然后再对应位置...
将这个文本文件中的代码贴到myeclipse里面运行就可以生成注册码(10.0版本以下的,我自己用的是8.5的绝对有用)
MyEclipse注册码生成JAVA类源代码。
使用Myeclipse一段时间后进程需要输入注册码才能用,现提供一段代码,需要的朋友可以自己生成需要的注册码
运行代码自动生成MyEclipse注册码的代码
新建一个工程,将下面的代码粘进去。运行一下,然后输入一个英文名,会生成注册码.在下来就是输入注册码了
各个版本的都可以生成,一段java代码,运行之后输入名字,就会生成一段注册码。简单好用,太强大了。
MyEclipse9以下注册码生成代码 评论不扣分 可以生成属于自己的注册码
MyEclipse6.5注册码生成代码,java源码。整个工程打包,只要导入工程,修改注册信息,运行即可生成MyEclipse6.5注册码。
myeclipse7.1注册码生成代码~~ java源码,运行后输入想要的名字
MyEclipse 8.6生成器可以随机生成MyEclipse 8.6注册所需的注册码,大家再也不用到网上无聊的搜索了,自己生成自己用。