`
shangweiqiang24
  • 浏览: 13162 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论

【转】myeclipse注册码生成代码

阅读更多

 

网上看到的,原创不知道是谁,我可耻的转过来了。

好像6.5到9.0都可用,不过我只测了6.5可行

建一个工程 把以下代码保存成 Test.java 编译后运行

按要求输入注册名 回车即会输出序列号

源码打包好在附件里。

 

main方法里的type属性根据MyEclipse的Subscription修改(注释部分有)

其实eclipse-jee-helios免费已经满足我们一般的要求了,eclipse官网有下载,建议没有用过的朋友试一下

 

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

 

public class Test {

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(Test.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 Test() {

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();

Test myeclipsegen = new Test();

String res = myeclipsegen.getSerial(userId, "999", type);

System.out.println("Serial:" + res);

reader.readLine();

} catch (IOException ex) {

}

}

}

分享到:
评论
3 楼 shangweiqiang24 2011-04-19  
  还来一次
2 楼 shangweiqiang24 2011-04-19  
  zai来
1 楼 shangweiqiang24 2011-04-19  
    我ding|

相关推荐

    myeclipse注册码生成代码

    解压后找到MyEclipseGen.java文件,在myeclipse直接执行后,控制台自己输入用户名,回车,注册码闪亮登场。

    MyEclipse注册码生成源码

    myEclipse 注册码生成 这是Java代码 运行后即可生产注册码

    myeclipse 注册码生成程序

    生成myeclipse注册码的简单代码..

    MyEclipse注册码生成(Java代码)

    MyEclipse注册码生成(Java代码),此代码经本人及他人多次测试,调试。 使用方法: 1.建立一个Java Project,项目名任意取就可以; 2.建立一个名字为:MyEclipseGen的类文件,内容见附件; 3.运行该代码,在控制台...

    MyEclipse注册码生成类代码

    MyEclipse注册码生成类代码,可以生成MyEclipse 各种版本的注册码,什么时候要马上生成即可。

    myeclipse 8.5 注册码生成程序

    myeclipse8.5 注册码生成程序. 我的myeclipse一直使用各种的注册码生成程序. 我目前使用的就是这个 注册码 生成程序. 可以使用. Decompiling this copyrighted software is a violation of both your license ...

    MyEclipse 激活码生成代码

    通用的MyEclipse激活码生成代码,只需要将该java代码编译运行,然后在控制台输入你要注册的用户名,然后回车后就会生成注册码,在MyEclipse里面的MyEclipse菜单下选择subscription information 选项,然后再对应位置...

    myeclipse 注册码生成

    将这个文本文件中的代码贴到myeclipse里面运行就可以生成注册码(10.0版本以下的,我自己用的是8.5的绝对有用)

    MyEclipse 注册码生成程序

    MyEclipse注册码生成JAVA类源代码。

    Myeclipse注册码生成器

    使用Myeclipse一段时间后进程需要输入注册码才能用,现提供一段代码,需要的朋友可以自己生成需要的注册码

    MyEclipse注册码生成

    新建一个工程,将下面的代码粘进去。运行一下,然后输入一个英文名,会生成注册码.在下来就是输入注册码了

    生成MyEclipse注册码的代码

    运行代码自动生成MyEclipse注册码的代码

    myeclipse注册码生成器

    各个版本的都可以生成,一段java代码,运行之后输入名字,就会生成一段注册码。简单好用,太强大了。

    MyEclipse6.5注册码生成工具

    MyEclipse6.5注册码生成代码,java源码。整个工程打包,只要导入工程,修改注册信息,运行即可生成MyEclipse6.5注册码。

    myeclipse7.1注册码生成代码~~

    myeclipse7.1注册码生成代码~~ java源码,运行后输入想要的名字

    MyEclipse 8.6注册码生成器

    MyEclipse 8.6生成器可以随机生成MyEclipse 8.6注册所需的注册码,大家再也不用到网上无聊的搜索了,自己生成自己用。

    myeclipse 6.0注册码生成

    运行内部java代码,用以生成myeclipse6.0注册码

Global site tag (gtag.js) - Google Analytics