<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-48  評論-26  文章-0  trackbacks-0
    1 import java.io.BufferedReader;
     
    2 import java.io.IOException;
     
    3 import java.io.InputStreamReader;
     
    4 import java.io.PrintStream;
     
    5 import java.text.DecimalFormat;
     
    6 import java.text.NumberFormat;
     
    7 import java.text.SimpleDateFormat;
     
    8 import java.util.Calendar;
     
    9 
    10 public class Myeclipse5_5_0_KeyMaker {
    11 
    12             private static final String L = "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.";
    13 
    14 
    15             public static void main(String args[]) {
    16         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    17         String userId = null;
    18         int intLicenseNum = 1;
    19         String strLicenseNum = null;
    20         boolean bProFlag = true;
    21         String strProFlag = null;
    22         while (userId == null || "".equals(userId.trim()))  {
    23             System.out.print("Subscriber: ");
    24             try {
    25                 userId = br.readLine();
    26             }
    27             catch (IOException ioexception) { }
    28         }
    29         System.out.print("Number of licenses(default 1, max 999): ");
    30         try {
    31             strLicenseNum = br.readLine();
    32         }
    33         catch (IOException ioexception1) { }
    34         NumberFormat nf = new DecimalFormat("000");
    35         if (strLicenseNum == null || "".equals(strLicenseNum.trim())) {
    36             strLicenseNum = nf.format(intLicenseNum);
    37         } else {
    38             strLicenseNum = nf.format(Integer.parseInt(strLicenseNum));
    39         }
    40         System.out.print("Professional or Standard(default pro, n=stand): ");
    41         try {
    42             strProFlag = br.readLine();
    43         }
    44         catch (IOException ioexception2) { }
    45         if (strProFlag != null && !"".equals(strProFlag.trim())) {
    46             bProFlag = false;
    47         }
    48         Calendar cal = Calendar.getInstance();
    49         cal.add(12);
    50         cal.add(6-1);
    51         SimpleDateFormat sdf = new SimpleDateFormat("yyMMdd");
    52         String need = userId.substring(01+ "Y" + (bProFlag ? "E3MP" : "E2MY"+ "-100" + strLicenseNum + "-" + sdf.format(cal.getTime()) + "0";
    53         String dx = need + "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." + userId;
    54         int suf = decode(dx);
    55         String code = need + suf;
    56         System.out.println("Subscription Code: " + change(code));
    57     }
    58 
    59     static int decode(String s) {
    60         int i = 0;
    61         char ac[] = s.toCharArray();
    62         int j = 0;
    63         for (int k = ac.length; j < k; j++) {
    64             i = 31 * i + ac[j];
    65         }
    66 
    67         return Math.abs(i);
    68     }
    69 
    70     static String change(String s) {
    71         if (s == null || s.length() == 0) {
    72             return s;
    73         }
    74         byte abyte0[] = s.getBytes();
    75         char ac[] = new char[s.length()];
    76         int i = 0;
    77         for (int k = abyte0.length; i < k; i++) {
    78             int j = abyte0[i];
    79             if (j >= 48 && j <= 57) {
    80                 j = ((j - 48+ 5% 10 + 48;
    81             } else
    82             if (j >= 65 && j <= 90) {
    83                 j = ((j - 65+ 13% 26 + 65;
    84             } else
    85             if (j >= 97 && j <= 122) {
    86                 j = ((j - 97+ 13% 26 + 97;
    87             }
    88             ac[i] = (char)j;
    89         }
    90 
    91         return String.valueOf(ac);
    92             }
    93 }

    文章來源:http://m.tkk7.com/NicholasEcho/archive/2008/08/15/222198.html
    posted on 2008-08-15 11:40 Worker 閱讀(52) 評論(0)  編輯  收藏 所屬分類: J2SE/J2EE

    主站蜘蛛池模板: 亚洲国产综合自在线另类| 国产午夜亚洲精品国产成人小说| 亚洲国产成人高清在线观看| 日韩大片免费观看视频播放| 国产免费资源高清小视频在线观看| 中文字幕乱码亚洲精品一区 | 77777亚洲午夜久久多人| 日本一区二区在线免费观看 | 女bbbbxxxx另类亚洲| 午夜国产大片免费观看| 粉色视频成年免费人15次| 免费乱理伦在线播放| 五级黄18以上免费看| 中文国产成人精品久久亚洲精品AⅤ无码精品 | 黄a大片av永久免费| 国产亚洲精品仙踪林在线播放| 免费萌白酱国产一区二区| 无码的免费不卡毛片视频| 久久影视综合亚洲| 美女视频黄a视频全免费网站色窝 美女被cao网站免费看在线看 | 国产∨亚洲V天堂无码久久久| 久久免费线看线看| 亚洲国产av高清无码| 夜夜爽免费888视频| 日韩电影免费在线观看网址| 国产成人精品日本亚洲专区61| 日本视频免费高清一本18 | 含羞草国产亚洲精品岁国产精品| 亚洲av手机在线观看| a毛片免费观看完整| 亚洲最大在线观看| 国产在线观看免费完整版中文版| 四虎永久在线精品免费一区二区| 亚洲人成在线播放网站| **aaaaa毛片免费同男同女| 国产精品无码亚洲精品2021| 亚洲日韩欧洲乱码AV夜夜摸| 日本精品人妻无码免费大全| 免费人成大片在线观看播放| 911精品国产亚洲日本美国韩国| 精品国产免费观看久久久|