• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 200, comments - 8, trackbacks - 0, articles - 0

            MyEclipseGen

            Posted on 2012-07-28 12:28 鑫龍 閱讀(266) 評論(0)  編輯 收藏 引用 所屬分類: Myeclipse
            import java.io.BufferedReader;
            import java.io.IOException;
            import java.io.InputStreamReader;
            public class MyEclipseGen {
            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 licenseNum) {
            java.util.Calendar cal = java.util.Calendar.getInstance();
            cal.add(1, 3);
            cal.add(6, -1);
            java.text.NumberFormat nf = new java.text.DecimalFormat("000");
            licenseNum = nf.format(Integer.valueOf(licenseNum));
            String verTime = new StringBuilder("-").append(
            new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime()))
            .append("0").toString();
            String type = "YE3MP-";
            String need = new StringBuilder(userId.substring(0, 1)).append(type)
            .append("300").append(licenseNum).append(verTime).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);
            }
            private int decode(String s) {
            int i;
            char[] ac;
            int j;
            int k;
            i = 0;
            ac = s.toCharArray();
            j = 0;
            k = ac.length;
            while (j < k) {
            i = (31 * i) + ac[j];
            j++;
            }
            return Math.abs(i);
            }
            private String change(String s) {
            byte[] abyte0;
            char[] ac;
            int i;
            int k;
            int j;
            abyte0 = s.getBytes();
            ac = new char[s.length()];
            i = 0;
            k = abyte0.length;
            while (i < k) {
            j = abyte0[i];
            if ((j >= 48) && (j <= 57)) {
            j = (((j - 48) + 5) % 10) + 48;
            } else if ((j >= 65) && (j <= 90)) {
            j = (((j - 65) + 13) % 26) + 65;
            } else if ((j >= 97) && (j <= 122)) {
            j = (((j - 97) + 13) % 26) + 97;
            }
            ac[i] = (char) j;
            i++;
            }
            return String.valueOf(ac);
            }
            public MyEclipseGen() {
            super();
            }
            public static void main(String[] args) {
            try {
            System.out.println("please input register name:");
            BufferedReader reader = new BufferedReader(new InputStreamReader(
            System.in));
            String userId = null;
            userId = reader.readLine();
            MyEclipseGen myeclipsegen = new MyEclipseGen();
            String res = myeclipsegen.getSerial(userId, "5");
            System.out.println("Serial:" + res);
            reader.readLine();
            } catch (IOException ex) {
            }
            }
            }
            国产成人精品久久亚洲高清不卡 国产成人精品久久亚洲高清不卡 国产成人精品久久亚洲 | 久久综合欧美成人| 国产成人精品久久一区二区三区| 99久久中文字幕| 色天使久久综合网天天| 一本久久知道综合久久| 亚洲国产精品热久久| 国产精品久久久久免费a∨| 久久精品国产亚洲AV麻豆网站| 99久久精品九九亚洲精品| 亚洲国产精品18久久久久久| 国产成人香蕉久久久久| 久久天天躁狠狠躁夜夜网站| 久久天天躁狠狠躁夜夜2020| a高清免费毛片久久| 久久精品人人做人人爽电影| 久久天天躁狠狠躁夜夜不卡| 狠狠色丁香婷婷久久综合不卡| 久久亚洲AV无码精品色午夜| 久久久久久无码国产精品中文字幕 | 中文无码久久精品| 午夜视频久久久久一区 | 无码任你躁久久久久久| 精品久久久久中文字| avtt天堂网久久精品| 国内精品伊人久久久久AV影院| 久久精品国产亚洲av麻豆图片| 亚洲Av无码国产情品久久| 国产一区二区精品久久岳| 色综合久久天天综合| 国产免费久久精品99久久| 91久久精品国产91性色也| 久久亚洲高清观看| 国产成人香蕉久久久久| 久久99精品国产麻豆婷婷| 久久久久亚洲AV成人网| 国产毛片久久久久久国产毛片| 精品久久久久久国产三级| 亚洲人成无码久久电影网站| 亚洲国产视频久久| 无码日韩人妻精品久久蜜桃|