Myeclipse5.5获取注册码
2019独角兽企业重金招聘Python工程师标准>>>
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class MyEclipseGen {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) {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 MyEclipseGen() {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();MyEclipseGen myeclipsegen = new MyEclipseGen();String res = myeclipsegen.getSerial(userId, "20");System.out.println("Serial:" + res);reader.readLine();} catch (IOException ex) {}}
}
转载于:https://my.oschina.net/zqwang121/blog/650088
Myeclipse5.5获取注册码相关推荐
- idea2017的获取注册码的方法
参考链接:http://www.cnblogs.com/suiyueqiannian/p/6754091.html 1. 到网站 http://idea.lanyus.com/ 获取注册码. 2.填入 ...
- 淘东电商项目(14) -公众号获取注册码功能
引言 在上一节<淘东电商项目(13) -项目整合WxJava>,主要讲解如何把WxJava框架整合到我们的电商项目,并完成了"鹦鹉学舌"的功能. 代码已提交至Githu ...
- ItelliJ IDEA下载及获取注册码详解
Idea安装很简单: 官网地址下载:https://www.jetbrains.com/idea/ 注册码获取:http://idea.lanyus.com/ 进入此网址,点击"获得注册 ...
- 怎么查看页面跳转过程_faststone注册码怎么获取?英文官网打不开
Faststonecapture的注册码怎么获取呢?英文官网为什么打不开呢?悄悄告诉大家一个小秘密,faststonecapture的中文官网已经有了哦,惊不惊喜?意不意外?接下来就一起看一下,如何进 ...
- 获取pycharm 2016.1.4 注册码 (window系统) 2016.3注册码(Ubuntu系统)
(1)window系统,获取pycharm 2016.1.4 注册码 打开这个网站 http://idea.iteblog.com/key.PHP 输入自己电脑的计算机全名,点击获取注册码就可以了. ...
- win10下prcharm安装(及注册码免费获取)
转载博文:https://www.jianshu.com/p/042324342bf4 主要是这篇博文有免费的注册码的获取方式:(若只需要注册码,则点击下main即可,若详细的安装步骤,在上面的连接处 ...
- (cLion、RubyMine、PyCharm、WebStorm、PhpStorm、Appcode、Clion、Idea) 万能破解,获取自己的注册码
听说cLion的ide编写c/c++非常的棒,今天下载了一个只有30天的使用时间,作为程序员破解它. 下载破解文件 | 点击下载 |密码: 7biu 解压压缩包,然后打开命令行 cd 到解压目录,执行 ...
- 怎样才能快速获取ABBYY FineReader 12中的注册码
2019独角兽企业重金招聘Python工程师标准>>> ABBYY FineReader 12 OCR文字识别软件自2014年4月发布以来,屡获殊荣,曾被美国著名计算机杂志<P ...
- IntelliJ IDEA注册码
1. http://idea.lanyus.com/ 2. http://www.cnblogs.com/suiyueqiannian/p/6754091.html 1. 到网站 http://ide ...
最新文章
- 浅谈IO及不同的理解
- ​清华大学智能产业研究院AI医疗团队招聘知识图谱方向实习生
- linux正则表达有话说
- MySQL常用运算符详解
- elastic-job 和 xxl-job 的对比
- Codeforces 858A. k-rounding 数论
- 清华大学《操作系统》(二十二):文件系统
- 使用NAT网关挂载本地物理机
- 机器学习数学基础--偏导数
- 服务器mt核心bug修复,RHSA-2020:0374-重要: 内核 安全和BUG修复更新
- 指针(小破站-王道训练营P18的例题)
- 图像相似度对比分析软件,图像相似度计算方法
- android inflate,【Android】【Inflate】inflate方法的三个参数
- 成长,进一寸有一寸的欢喜
- 7805和78l05可以代换吗_78L05和7805的引脚有何不同??
- 单机网页游戏的如何修改服务器数据库,页游源码【神创天下】单机版GM修改+人物数据修改教程+一键启动客户端服务端...
- [附源码]Python计算机毕业设计电影票网上订票系统
- 如何用技术改变生活 哪个瞬间你突然觉得读书真有用?
- mysql经典50道练习题
- 【大数据】王加林-大数据学习资料