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

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

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

    posts - 15,  comments - 4,  trackbacks - 0
    運行,在控制臺敲入你的注冊名,回車,就會出來注冊碼
     1 package com.xpow.hodo.util;
     2 
     3 import java.io.BufferedReader;
     4 import java.io.IOException;
     5 import java.io.InputStreamReader;
     6 
     7 public class MyEclipseGen {
     8     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.";
     9 
    10     public String getSerial(String userId, String licenseNum) {
    11         java.util.Calendar cal = java.util.Calendar.getInstance();
    12         cal.add(13);
    13         cal.add(6-1);
    14         java.text.NumberFormat nf = new java.text.DecimalFormat("000");
    15         licenseNum = nf.format(Integer.valueOf(licenseNum));
    16         String verTime = new StringBuilder("-").append(
    17                 new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime()))
    18                 .append("0").toString();
    19         String type = "YE3MP-";
    20         String need = new StringBuilder(userId.substring(01)).append(type)
    21                 .append("300").append(licenseNum).append(verTime).toString();
    22         String dx = new StringBuilder(need).append(LL).append(userId)
    23                 .toString();
    24         int suf = this.decode(dx);
    25         String code = new StringBuilder(need).append(String.valueOf(suf))
    26                 .toString();
    27         return this.change(code);
    28     }
    29 
    30     private int decode(String s) {
    31         int i;
    32         char[] ac;
    33         int j;
    34         int k;
    35         i = 0;
    36         ac = s.toCharArray();
    37         j = 0;
    38         k = ac.length;
    39         while (j < k) {
    40             i = (31 * i) + ac[j];
    41             j++;
    42         }
    43         return Math.abs(i);
    44     }
    45 
    46     private String change(String s) {
    47         byte[] abyte0;
    48         char[] ac;
    49         int i;
    50         int k;
    51         int j;
    52         abyte0 = s.getBytes();
    53         ac = new char[s.length()];
    54         i = 0;
    55         k = abyte0.length;
    56         while (i < k) {
    57             j = abyte0[i];
    58             if ((j >= 48&& (j <= 57)) {
    59                 j = (((j - 48+ 5% 10+ 48;
    60             } else if ((j >= 65&& (j <= 90)) {
    61                 j = (((j - 65+ 13% 26+ 65;
    62             } else if ((j >= 97&& (j <= 122)) {
    63                 j = (((j - 97+ 13% 26+ 97;
    64             }
    65             ac[i] = (char) j;
    66             i++;
    67         }
    68         return String.valueOf(ac);
    69     }
    70 
    71     public MyEclipseGen() {
    72         super();
    73     }
    74 
    75     public static void main(String[] args) {
    76         try {
    77             System.out.println("please input register name:");
    78             BufferedReader reader = new BufferedReader(new InputStreamReader(
    79                     System.in));
    80             String userId = null;
    81             userId = reader.readLine();
    82             MyEclipseGen myeclipsegen = new MyEclipseGen();
    83             String res = myeclipsegen.getSerial(userId, "5");
    84             System.out.println("Serial:" + res);
    85             reader.readLine();
    86         } catch (IOException ex) {
    87         }
    88     }
    89 }


    posted on 2010-05-01 17:31 jeanx 閱讀(3969) 評論(1)  編輯  收藏

    只有注冊用戶登錄后才能發(fā)表評論。

    網(wǎng)站導航:
     
    主站蜘蛛池模板: 夫妻免费无码V看片| 国产一卡二卡四卡免费| 国产又黄又爽又刺激的免费网址 | 亚洲中文字幕久久精品无码喷水 | 久久精品夜色噜噜亚洲A∨| 黄网站色成年片大免费高清| 国产成人在线观看免费网站| 免费精品国产自产拍在线观看| 国产小视频免费观看| 黄色片网站在线免费观看| 国产亚洲大尺度无码无码专线 | 日韩在线视频线视频免费网站| 亚洲最大av无码网址| 成人A毛片免费观看网站| 亚洲成A人片在线观看WWW| 精品无码国产污污污免费网站| 亚洲国产一区在线观看| 欧洲精品免费一区二区三区| 美女的胸又黄又www网站免费| 久久精品国产精品亚洲| 久久久久久久久久国产精品免费| 亚洲韩国在线一卡二卡| 成人免费a级毛片无码网站入口| 亚洲第一se情网站| 中文国产成人精品久久亚洲精品AⅤ无码精品| 国产免费高清69式视频在线观看| 亚洲成人中文字幕| 成人男女网18免费视频| 一级毛片试看60分钟免费播放| 亚洲成AV人片在线观看无码| 日本精品人妻无码免费大全| 羞羞网站免费观看| 亚洲一区精品中文字幕| 午夜小视频免费观看| a毛片免费在线观看| 亚洲美国产亚洲AV| 亚洲香蕉网久久综合影视| 国内精品乱码卡1卡2卡3免费| 免费的黄色网页在线免费观看| 亚洲美女aⅴ久久久91| 亚洲成av人在片观看|