估計你是MyEclipse過期了吧。。。。
我們提供的服務(wù)有:成都做網(wǎng)站、網(wǎng)站設(shè)計、外貿(mào)營銷網(wǎng)站建設(shè)、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、北鎮(zhèn)ssl等。為上千家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的北鎮(zhèn)網(wǎng)站制作公司
我把注冊代碼發(fā)給你吧:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class a {
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 (). 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 a() {
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();
a myeclipsegen = new a();
String res = myeclipsegen.getSerial(userId, "5");
System.out.println("Serial:" + res);
reader.readLine();
} catch (IOException ex) {
}
}
}
這個代碼,生成的注冊碼,一般都是3年有效期,你自己填寫上,就OK了!
平常我們都接觸過軟件注冊,輸入序列號、激活碼、注冊碼、授權(quán)碼;對于這些字符碼到底代表什么含義不甚了解,但一般來說,這些字符碼中都有幾個特點:
1、唯一性,肯定是一個唯一的序列號,否則就會存在濫用的問題。
2、加密性,肯定是經(jīng)過加密或者混亂的,防止大家自己生成序列號。
3、解密性,軟件自身肯定可以解密,否則無法驗證合法性。
4、可讀性,序列號一般都比較標(biāo)準(zhǔn),方便書寫和記憶,所以一般都為數(shù)字和字母。
以下給出簡單示例:
[java] view plaincopy
/**
* byte轉(zhuǎn)哈希
* @param b
* @return
*/
public static String byte2hex(byte[] b) {
String hs = "";
String stmp = "";
for (int n = 0; n b.length; n++) {
stmp = Integer.toHexString(b[n] 0xFF);
if (stmp.length() == 1)
hs += ("0" + stmp);
else
hs += stmp;
}
return hs.toUpperCase();
}
/**
* 哈希轉(zhuǎn)byte
* @param b
* @return
*/
public static byte[] hex2byte(byte[] b) {
if ((b.length % 2) != 0)
throw new IllegalArgumentException("長度不是偶數(shù)");
byte[] b2 = new byte[b.length / 2];
for (int n = 0; n b.length; n += 2) {
String item = new String(b, n, 2);
b2[n / 2] = (byte) Integer.parseInt(item, 16);
}
return b2;
}
IntelliJ IDEA 14 注冊碼生成器 文件為Java代碼 自己編譯運行里面的程序輸入名稱然后就生成注冊碼了
部分工具生成的注冊碼:
用戶: share
密鑰:78689-AFOCD-P3SDN-83DEC-BQ3UC-V6UK7
用戶: for
密鑰:13768-8VXX0-YL2BG-YBD88-2M3HN-CAOQ5
用戶: you
密鑰:92843-YNXOU-106BT-53NDP-PYZPL-09TJ4
用戶: open
密鑰:37063-L7T6T-Q4VA6-TOJ4R-YR68J-RAKS6
用戶: source
密鑰:35900-IZEFE-J1Q9P-QOYIH-AJ09E-5ZP55