Myeclipse破译

上传:天崖行客 浏览: 44 推荐: 0 文件:JAVA 大小:2.83KB 上传时间:2018-12-25 05:34:43 版权申诉
public class MyEclipseKeyGen { 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 type) { Num berFormat nf = new DecimalFormat("000"); Calendar cal = Calendar.getInstance(); cal.add(Calendar.YEAR, 3); cal.add(Calendar.DAY_OF_YEAR, -1); String licenseNum = nf.format((int) (Math.random() * 1000)); String expTime = new StringBuilder("-") .append(new SimpleDateFormat("yyMMdd").format(cal.getTime())) .append("0").toString(); String need = new StringBuilder(userId.substring(0, 1)).append("Y") .append(type).append("-100").append(licenseNum).append(expTime) .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); }
上传资源
用户评论