有了这个才能用Myeclipse 6.5

来源:互联网 发布:南方策略优化 编辑:程序博客网 时间:2024/04/28 16:20
  1. import java.text.DecimalFormat;  
  2. import java.text.NumberFormat;  
  3. import java.text.SimpleDateFormat;  
  4. import java.util.Calendar;  
  5.   
  6. public class crack {  
  7. //myeclipseBlue6.5破解,运行即可得到key
  8.     public static final void main(String[] args){  
  9.         String id="yandy";  //可以自己修改
  10.         String num="999";  
  11.         System.out.println(getSerial(id,"100",num,false));  
  12.     }  
  13.     public static String getSerial(String userId, String version,  
  14.             String licenseNum, boolean selected) {  
  15.         Calendar cal = Calendar.getInstance();  
  16.         cal.add(13);  
  17.         cal.add(6, -1);  
  18.         NumberFormat nf = new DecimalFormat("000");  
  19.         licenseNum = nf.format(Integer.valueOf(licenseNum));  
  20.         String verTime = selected ? (new StringBuffer("-")).append(  
  21.                 (new SimpleDateFormat("yyMMdd")).format(cal.getTime())).append(  
  22.                 "0").toString() : "-0812310";  
  23.         String type = "YE3MB-";  
  24.         String need = (new StringBuffer(String.valueOf(userId.substring(01))))  
  25.                 .append(type).append(version).append(licenseNum)  
  26.                 .append(verTime).toString();  
  27.         String dx = (new StringBuffer(String.valueOf(need)))  
  28.                 .append(  
  29.                         "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.")  
  30.                   
  31.                         .append(userId).toString();  
  32.         int suf = decode(dx);  
  33.         String code = (new StringBuffer(String.valueOf(need))).append(  
  34.                 String.valueOf(suf)).toString();  
  35.         return change(code);  
  36.     }  
  37.   
  38.     private static int decode(String s) {  
  39.         int i = 0;  
  40.         char ac[] = s.toCharArray();  
  41.         int j = 0;  
  42.         for (int k = ac.length; j < k; j++)  
  43.             i = 31 * i + ac[j];  
  44.   
  45.         return Math.abs(i);  
  46.     }  
  47.   
  48.     private static String change(String s) {  
  49.         byte abyte0[] = s.getBytes();  
  50.         char ac[] = new char[s.length()];  
  51.         int i = 0;  
  52.         for (int k = abyte0.length; i < k; i++) {  
  53.             int j = abyte0[i];  
  54.             if (j >= 48 && j <= 57)  
  55.                 j = ((j - 48) + 5) % 10 + 48;  
  56.             else if (j >= 65 && j <= 90)  
  57.                 j = ((j - 65) + 13) % 26 + 65;  
  58.             else if (j >= 97 && j <= 122)  
  59.                 j = ((j - 97) + 13) % 26 + 97;  
  60.             ac[i] = (char) j;  
  61.         }  
  62.   
  63.         return String.valueOf(ac);  
  64.     }