MyEclipse8.5 注册码生成 Java代码实现方式。永久免费
下面展示下 MyEclipse8.5注册码生成 Java 代码实现,本代码只做交流使用,不做非法勾当,如果用来做非法用途,本博客不承担任何法律责任,建议大家使用收费版的 MyEclipse8.5 ,那下面上 MyEclipse8.5 注册码生成 工具类 。可以直接赋值或者下载附件运行。
如果你只是想找一个注册码,那么请使用这个:
subscriber: www.sojson.com
subscription code: jLR8ZC-855550-64596856619548327
MyEclipse8.5 注册码输入步骤和方法,请查看这篇博客:最新MyEclipse8.5注册码,有效期到2019年
MyEclipse8.5在线生成注册码:https://www.sojson.com/myeclipse8.5/
import java.util.Calendar; /** * * 开发公司:sojson.com * 版权:sojson.com *
* @author zhou-baicheng
* @email json@sojson.com * @version 1.0,2016年4月14日 */ public class MyEclipseKeyGenerate { static String CODE; //静态块加载 static{ StringBuffer sb = new StringBuffer(); sb.append("Decompiling this copyrighted software is a violation of both your license"); sb.append(" agreement and the Digital Millenium Copyright Act of 1998 "); sb.append("(http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA,"); sb.append(" penalties range up to a $500,000 fine or up to five years imprisonment for a first offense."); sb.append(" Think about it; pay for a license, avoid prosecution, and feel better about yourself."); CODE = sb.toString(); } /** * 根据帐号生成 * @param subscriber 帐号 * @return subscription code 序列号 */ public String getSubscription(String subscriber) { Calendar calendar = Calendar.getInstance(); calendar.add(1, 3); calendar.add(6,-1); String verTime = new StringBuilder("-").append( new java.text.SimpleDateFormat("yyMMdd").format(calendar.getTime())) .append("0").toString(); String type = "YE3MP-"; String need = new StringBuilder(subscriber.substring(0, 1)).append(type) .append("300005").append(verTime).toString(); String dx = new StringBuilder(need).append(CODE).append(subscriber) .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[] sojson; char[] ac; int i; int k; int j; sojson = s.getBytes(); ac = new char[s.length()]; i = 0; k = sojson.length; while (i < k) { j = sojson[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); } /** * 测试 * @param args */ public static void main(String[] args) { String userId = "www.sojson.com"; MyEclipseKeyGenerate myeclipsekeygen = new MyEclipseKeyGenerate(); String code = myeclipsekeygen.getSubscription(userId); System.out.printf("subscriber: www.sojson.com \nsubscription code: %s \n", code); } }
* * 根据subscriber 生成MyEclipse 8.5 序列号,每次生成3年有效期 * * * 区分 责任人 日期 说明 * 创建 soゝso 2016年4月14日 * ******* *
如果有问题,请与加入本群交流。
版权所属:SO JSON在线解析
原文地址:https://www.sojson.com/blog/119.html
转载时必须以链接形式注明原始出处及本声明。
如果本文对你有帮助,那么请你赞助我,让我更有激情的写下去,帮助更多的人。