owen
寶劍鋒從磨礪出,梅花香自苦寒來。
BlogJava
首頁
新隨筆
聯系
聚合
管理
隨筆-16 評論-84 文章-1 trackbacks-0
Myeclipse7.0注冊機的源代碼[Reship]
代碼如下:
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)
{
}
}
}
注冊方法:
window -> preferences -> myeclipse -> subscription
posted on 2010-02-16 09:20
absolute
閱讀(312)
評論(0)
編輯
收藏
所屬分類:
Crack & Tip
<
2010年2月
>
日
一
二
三
四
五
六
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
常用鏈接
我的隨筆
我的文章
我的評論
我的參與
最新評論
留言簿
(1)
給我留言
查看公開留言
查看私人留言
隨筆分類
(16)
Crack & Tip(3)
DataBase(7)
DesignPattern
Java
JavaScript(2)
OpenSource(2)
Personal(1)
System Structure(1)
隨筆檔案
(17)
2010年11月 (3)
2010年9月 (1)
2010年3月 (1)
2010年2月 (1)
2010年1月 (1)
2009年10月 (1)
2009年8月 (4)
2009年6月 (1)
2009年4月 (1)
2009年3月 (1)
2009年2月 (1)
2008年12月 (1)
工作流
搜索
積分與排名
積分 - 140360
排名 - 447
最新評論
1.?re: jQuery實現表格行的動態增加與刪除(改進版)[未登錄]
s
--s
2.?re: jQuery實現表格行的動態增加與刪除(改進版)
正好幫我解決一個難題,謝謝?。?!
--feicoo
3.?re: 讓Apache CXF 支持傳遞java.sql.Timestamp和java.util.HashMap類型
評論內容較長,點擊標題查看
--David房
4.?re: 存儲過程學習-批量插入10000條數據進數據庫
好
--羊肉湯
5.?000[未登錄]
123123
--123
6.?re: 數據庫學習 ORA-12545:因目標主機或對象不存在,連接失敗
上述的兩個點都沒有問題,可還是這個錯誤
--顏正年
7.?re: jQuery實現表格行的動態增加與刪除(改進版)
@游客X
$("tr[id="+i+"]") 就可以了
--游客X
8.?re: jQuery實現表格行的動態增加與刪除(改進版)
$("tr[id=\'"+i+"\']")
這里邊不需要轉義吧?
--游客X
9.?re: jQuery實現表格行的動態增加與刪除(改進版)
評論內容較長,點擊標題查看
--ioio_Carl
10.?re: jQuery實現表格行的動態增加與刪除(改進版)
@ioio_Carl
方便的話可以麻煩您發郵件告訴我嗎?ahjun30@hotmail.com,萬分感謝
--ioio_Carl
閱讀排行榜
1.?jQuery實現表格行的動態增加與刪除(改進版)(84155)
2.?數據庫學習 ORA-12545:因目標主機或對象不存在,連接失敗(21054)
3.?sql中 with rollup 、with cube、grouping 統計函數用法 (17364)
4.?存儲過程學習-批量插入10000條數據進數據庫(3700)
5.?讓Apache CXF 支持傳遞java.sql.Timestamp和java.util.HashMap類型(3429)
6.?Policy for init Spring Container in WEB Application(2271)
7.?Rational Rose Enterprise Edition 2003 安裝破解步驟[Reship](882)
8.?ORA-00054:resource busy and acquire with nowait specified(資源正忙,需指定nowait)解決方法(863)
9.?HTML頭部信息[Reship](737)
10.?Hibernate Study Note 1(678)
11.?集群和分布式[Reship](645)
12.?關于GUID生成函數的不同數據庫間的支持[Reship](625)
13.?SQLServer SQL分頁語句(546)
14.?一道SQL面試題(444)
15.?My Persuit(324)
16.?Myeclipse7.0注冊機的源代碼[Reship](312)
17.?快速復原遺失的顯示桌面快捷按鈕(277)
評論排行榜
1.?jQuery實現表格行的動態增加與刪除(改進版)(25)
2.?數據庫學習 ORA-12545:因目標主機或對象不存在,連接失敗(11)
3.?My Persuit(1)
4.?存儲過程學習-批量插入10000條數據進數據庫(1)
5.?讓Apache CXF 支持傳遞java.sql.Timestamp和java.util.HashMap類型(1)
6.?Rational Rose Enterprise Edition 2003 安裝破解步驟[Reship](1)
7.?一道SQL面試題(0)
8.?sql中 with rollup 、with cube、grouping 統計函數用法 (0)
9.?HTML頭部信息[Reship](0)
10.?快速復原遺失的顯示桌面快捷按鈕(0)
11.?關于GUID生成函數的不同數據庫間的支持[Reship](0)
12.?Policy for init Spring Container in WEB Application(0)
13.?集群和分布式[Reship](0)
14.?Myeclipse7.0注冊機的源代碼[Reship](0)
15.?Hibernate Study Note 1(0)
16.?ORA-00054:resource busy and acquire with nowait specified(資源正忙,需指定nowait)解決方法(0)
17.?SQLServer SQL分頁語句(0)
Powered by:
博客園
模板提供:
滬江博客
Copyright ©2025 absolute
主站蜘蛛池模板:
大方县
|
文化
|
贵南县
|
老河口市
|
临海市
|
阜平县
|
新竹市
|
永丰县
|
富源县
|
清水河县
|
崇仁县
|
巴东县
|
梧州市
|
泾阳县
|
玉环县
|
宁蒗
|
宁武县
|
遂溪县
|
高青县
|
两当县
|
兴文县
|
常德市
|
从江县
|
桂林市
|
化德县
|
宜章县
|
洛川县
|
盐亭县
|
舟山市
|
芦山县
|
金阳县
|
牡丹江市
|
平武县
|
滨州市
|
扶余县
|
阜阳市
|
乌兰察布市
|
张家港市
|
营山县
|
罗山县
|
沈丘县
|