import
java.io.BufferedReader;
import
java.io.IOException;
import
java.io.InputStreamReader;

public
class
Crack
...
{

publicstaticStringconvert(Strings)...{
if(s==null||s.length()==0)
returns;
byteabyte0[]=s.getBytes();
charac[]=newchar[s.length()];
inti=0;

for(intk=abyte0.length;i<k;i++)...{
intj=abyte0[i];
if(j>=48&&j<=57)
j=((j-48)+5)%10+48;
elseif(j>=65&&j<=90)
j=((j-65)+13)%26+65;
elseif(j>=97&&j<=122)
j=((j-97)+13)%26+97;
ac[i]=(char)j;
}
returnString.valueOf(ac);
}



privatestaticinthash(Strings)...{
inti=0;
charac[]=s.toCharArray();
intj=0;
for(intk=ac.length;j<k;j++)
i=31*i+ac[j];
returnMath.abs(i);
}



privatestaticStringinputString()...{
BufferedReaderbufferedreader=newBufferedReader(
newInputStreamReader(System.in));
Strings=null;

try...{
s=bufferedreader.readLine();

}catch(IOExceptionioexception)...{
ioexception.printStackTrace();
}
returns;
}



publicstaticvoidmain(Stringargs[])...{

try...{
System.out.println("MyEclipseIDEvxx.xxKeygen");
System.out.print("LicenseName:");
Strings=inputString();


//程序关键代码:
StringlicStr="YE3MP-100000-1012310";
Stringh=s.substring(0,1)
+licStr
+"DecompilingthiscopyrightedsoftwareisaviolationofbothyourlicenseagreementandtheDigitalMilleniumCopyrightActof1998(http://www.loc.gov/copyright/legislation/dmca.pdf).Undersection1204oftheDMCA,penaltiesrangeuptoa$500,000fineoruptofiveyearsimprisonmentforafirstoffense.Thinkaboutit;payforalicense,avoidprosecution,andfeelbetteraboutyourself."
+s;
intj=hash(h);


Stringlic=s.substring(0,1)+licStr+Integer.toString(j);
System.out.println("LicenseKey:"+convert(lic));

}catch(Exceptionexception)...{
exception.printStackTrace();
}
}
}
实例参照:
License Name :http://blog.youkuaiyun.com/steven2006
License Key : uLR8ZC-655555-65678656985769094
以上license可以使用三年
Myeclipse5.5下载URL官方原版: http://www.myeclipseide.com/index.php?name=Downloads&req=viewsdownload&sid=15
本文介绍了一个用于生成 MyEclipse IDE 版本 xx.xx 的 License Key 的 Java 程序。该程序通过一系列转换算法来生成合法的许可证密钥,并展示了如何通过输入许可证名称来获取相应的密钥。
1849

被折叠的 条评论
为什么被折叠?



