package t4_12;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class test {
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("Subscriber: ");
try {
userId = br.readLine();
} catch (IOException ioexception) {
}
}
System.out.print("Number of licenses(default 1, max 999): ");
try {
strLicenseNum = br.readLine();
} catch (IOException ioexception1) {
}
NumberFormat nf = new DecimalFormat("000");
if (strLicenseNum == null || "".equals(strLicenseNum.trim())) {
strLicenseNum = nf.format(intLicenseNum);
} else {
strLicenseNum = nf.format(Integer.parseInt(strLicenseNum));
}
System.out.print("Professional or Standard(default pro, n=stand): ");
try {
strProFlag = br.readLine();
} catch (IOException ioexception2) {
}
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("Subscription Code: " + 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);
}
}
分享到:
相关推荐
Myeclipse5.5GA注册码,2009年7月14日测可用.
<br/>文件只包含补丁使用方法和注册码,MyEclipse 5.5 GA 正式版请从官方网站下载,地址http://www.myeclipseide.com/Downloads+index-req-getit-lid-82.html<br/>MyEclipse Enterprise Workbench 5.5 GA for ...
MyEclipse_5.5GA_注册码生成_keymaker(双击BAT直接运行版)
myeclipse5.5GA 破解文件 注册码
这个注册码是2011年才过期的,6.0之后大的版本用起来不习惯,还是5.5用着顺手
myeclipse5.5Ga 注册码,很好用的。
MyEclipse_5.5GA_keymaker,MyEclipse自动生成注册码的工具
呵呵。。。我的分太少了,想赚点分,希望大家不我介意哦,嘿嘿。。。对你帮助的顶一下哦!
MyEclipse 6.0.1 可用于vista系统,另附MyEclipse 5.5和MyEclipse 6.0的注册码.
MyEclipse5.5 GA 注册码,我自己用过,可以用
运行 - cmd javac MyEclipse 然后随便输入一个name值就生成注册码了,生成注册码一次可以使用2年
20091021 Number of licenses: 897 下面把 6.0GA / M1 和 5.5GA 版本的“注册信息”“注册码”“破解”给大家: Subscriber: www.1cn.biz Subscriber Code: jLR8ZC-655355-5450765457039125 或者 Subscriber:...
MyEclipse 6.0GA / M1 和 5.5GA 注册码 Subscriber: www.1cn.biz Subscriber Code: jLR8ZC-655355-5450765457039125 或者 Subscriber: www.1cn.biz Subscriber Code: jLR7ZL-655355-5450755330522962 适用于早期的...
MyEclipse_5.5.1GA破解带注册码的
[分享]MyEclipse 5.0 M2 注册码及下载地址 序列号过期时间为2099年12月31日,估计用上5-10年都有可能(就看 myeclipse的更新速度了)。 Subscriber: www.1cn.biz Subscriber Code: jLR8ZC-444-55-...
MyEclipse 5.5 GA 注册码,均试验成功! 请放心下载
发布 MyEclipse 6.5 GA Blue 6.5 6.0GA 5.5GA 5.1GA 等全系列注册码及高速下载地址
MyEclipse 6.0.1 注册码 MyEclipse 6.0GA / M1 和 5.5GA 注册码 早期的 5.5 M2 版本 早期的 5.1.1 GA 和 5.5 M1 版本
MyEclipse_5.5GA 生成的序列号两年有效