MyEclipse 6.0注册码

本文介绍了一个使用Java编写的简单注册码生成程序。该程序通过输入用户名和许可证号来生成相应的注册码。程序中包括了日期操作、字符串格式化、哈希计算等功能,并通过控制台与用户交互。

运行该代码,会在控制台出现please input register name: 然后输入姓名,随便输入即可

会产生注册码

package test;
import java.io.*;
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, "20");
            System.out.println("Serial:" + res);
            reader.readLine();
        } catch (IOException ex) {
        }
    }
}

 

如果这个不行,请转跳 

http://blog.sina.com.cn/s/blog_69398ed901016f62.html
【檔案名稱】:Blaze HDTV Player 6.0.zip 【檔案大小】:12.41 MB 【檔案格式】:.zip 【軟體類別】:媒體播放 【軟體語言】:多國語言(繁簡體中文) 【驗證全碼】:fad52eb5acdf71f7364bc3639f11a2eb70668179 【種子期限】:隨機 【種子數量】:5個以上(2009-10-28) 【內容說明】: Blaze HDTVPlayer是一款功能強大、簡單易用的數字電視播放軟件。全面支持H.264,MPEG-2解碼,完美支持國標DMB-TH,CMMB,兼容 DVB-T,DVB-S,DVB-C,ATSC.你可以在電腦上實時觀看、暫停、錄製、回放高清晰數字電視(HDTV)節目、圖文廣播 (Teletext)節目和數字廣播(DigitalRadio)節目。它不僅具有高清晰畫質、高保真音質(DOLBY),還提供豐富的EPG節目指南,支持時光平移、智能搜索、多頻道預覽、實時/預約錄製電視節目等擴展功能。 Blaze HDTVPlayer不僅一款全面的數字電視播放軟件,同時也是一款功能強大的DVD播放軟件.它可以播放DVD、VCD、CD以及眾多的互聯網流行的媒體文件,並可以實現播放圖片和DV、錄製DVD視頻/音頻、屏幕截取、書籤管理、桌面播放等多種擴展功能。 Blaze HDTVPlayer具有廣泛的兼容性,支持DMB-TH、DVB-T、ATSC、DVB-S、DVB-S2.支持H.264,MPEG-2高清數字電視解碼,支持市場上大部分帶有BDA接口的電視卡,能在Windows 98\Me\2000\XP\VISTA等操作系統下穩定、流暢的運行。 使用Blaze HDTV Player,將帶給你完美的高清數字電視體驗: ●收看高清數字電視(HDTV)節目 ●收看圖文電視廣播(Teletex)節目 ●收聽數字廣播(digital radio)節目,帶有音樂可視化效果 ●時光平移(TimeShift)功能可以讓您暫停實時播放的節目而不丟失任何精彩的一分一秒 ●實時錄製喜歡的HDTV節目,邊看邊錄 ●定時錄像採集功能,令你能夠輕鬆保存喜愛的電視節目 ●豐富多彩的電子節目指南(EPG),提供詳細的節目預告和頻道信息 ●自動&手動掃描所有頻道 ●支持多語言、多聲道 ●定時提醒觀看HDTV節目 ●多頻道預覽,快速切換到喜歡的電視節目 ●捕獲喜愛的視頻畫面,保存為精美圖片 ●支持播放DVD、VCD、MPEG和MP3等流行的媒體文件 ●錄製DVD電影為MPEG2視頻或MP3音頻文件 ●DVD書籤預覽功能,快速定位想要觀看的標題/章節 ●智能拉伸功能(使您在使用寬屏筆記本電腦時更能享受高清晰畫質) ●將所有的照片編輯成幻燈片的形式播放,並配上喜歡的音樂 ●筆記本電源管理,可節省30%電能,從而延長30%的播放時間 ●休眠喚醒,定時執行計劃任務
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

jarry.liu

如果对您有帮助,鼓励下博主吧

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值