owen
寶劍鋒從磨礪出,梅花香自苦寒來。
BlogJava
首頁
新隨筆
聯(lián)系
聚合
管理
隨筆-16 評論-84 文章-1 trackbacks-0
Myeclipse7.0注冊機(jī)的源代碼[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
閱讀(318)
評論(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)
工作流
搜索
積分與排名
積分 - 140559
排名 - 448
最新評論
1.?re: jQuery實現(xiàn)表格行的動態(tài)增加與刪除(改進(jìn)版)[未登錄]
s
--s
2.?re: jQuery實現(xiàn)表格行的動態(tài)增加與刪除(改進(jìn)版)
正好幫我解決一個難題,謝謝!!!
--feicoo
3.?re: 讓Apache CXF 支持傳遞java.sql.Timestamp和java.util.HashMap類型
評論內(nèi)容較長,點(diǎn)擊標(biāo)題查看
--David房
4.?re: 存儲過程學(xué)習(xí)-批量插入10000條數(shù)據(jù)進(jìn)數(shù)據(jù)庫
好
--羊肉湯
5.?000[未登錄]
123123
--123
6.?re: 數(shù)據(jù)庫學(xué)習(xí) ORA-12545:因目標(biāo)主機(jī)或?qū)ο蟛淮嬖冢B接失敗
上述的兩個點(diǎn)都沒有問題,可還是這個錯誤
--顏正年
7.?re: jQuery實現(xiàn)表格行的動態(tài)增加與刪除(改進(jìn)版)
@游客X
$("tr[id="+i+"]") 就可以了
--游客X
8.?re: jQuery實現(xiàn)表格行的動態(tài)增加與刪除(改進(jìn)版)
$("tr[id=\'"+i+"\']")
這里邊不需要轉(zhuǎn)義吧?
--游客X
9.?re: jQuery實現(xiàn)表格行的動態(tài)增加與刪除(改進(jìn)版)
評論內(nèi)容較長,點(diǎn)擊標(biāo)題查看
--ioio_Carl
10.?re: jQuery實現(xiàn)表格行的動態(tài)增加與刪除(改進(jìn)版)
@ioio_Carl
方便的話可以麻煩您發(fā)郵件告訴我嗎?ahjun30@hotmail.com,萬分感謝
--ioio_Carl
閱讀排行榜
1.?jQuery實現(xiàn)表格行的動態(tài)增加與刪除(改進(jìn)版)(84171)
2.?數(shù)據(jù)庫學(xué)習(xí) ORA-12545:因目標(biāo)主機(jī)或?qū)ο蟛淮嬖冢B接失敗(21065)
3.?sql中 with rollup 、with cube、grouping 統(tǒng)計函數(shù)用法 (17385)
4.?存儲過程學(xué)習(xí)-批量插入10000條數(shù)據(jù)進(jìn)數(shù)據(jù)庫(3707)
5.?讓Apache CXF 支持傳遞java.sql.Timestamp和java.util.HashMap類型(3435)
6.?Policy for init Spring Container in WEB Application(2283)
7.?Rational Rose Enterprise Edition 2003 安裝破解步驟[Reship](890)
8.?ORA-00054:resource busy and acquire with nowait specified(資源正忙,需指定nowait)解決方法(872)
9.?HTML頭部信息[Reship](747)
10.?Hibernate Study Note 1(685)
11.?集群和分布式[Reship](654)
12.?關(guān)于GUID生成函數(shù)的不同數(shù)據(jù)庫間的支持[Reship](631)
13.?SQLServer SQL分頁語句(555)
14.?一道SQL面試題(451)
15.?My Persuit(332)
16.?Myeclipse7.0注冊機(jī)的源代碼[Reship](318)
17.?快速復(fù)原遺失的顯示桌面快捷按鈕(284)
評論排行榜
1.?jQuery實現(xiàn)表格行的動態(tài)增加與刪除(改進(jìn)版)(25)
2.?數(shù)據(jù)庫學(xué)習(xí) ORA-12545:因目標(biāo)主機(jī)或?qū)ο蟛淮嬖冢B接失敗(11)
3.?My Persuit(1)
4.?存儲過程學(xué)習(xí)-批量插入10000條數(shù)據(jù)進(jìn)數(shù)據(jù)庫(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 統(tǒng)計函數(shù)用法 (0)
9.?HTML頭部信息[Reship](0)
10.?快速復(fù)原遺失的顯示桌面快捷按鈕(0)
11.?關(guān)于GUID生成函數(shù)的不同數(shù)據(jù)庫間的支持[Reship](0)
12.?Policy for init Spring Container in WEB Application(0)
13.?集群和分布式[Reship](0)
14.?Myeclipse7.0注冊機(jī)的源代碼[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
主站蜘蛛池模板:
苗栗县
|
西乌珠穆沁旗
|
尖扎县
|
阜平县
|
林周县
|
巫溪县
|
辽源市
|
金乡县
|
库车县
|
英超
|
余江县
|
鄄城县
|
沙湾县
|
静海县
|
白沙
|
黔西
|
林周县
|
巫溪县
|
仙居县
|
额济纳旗
|
鱼台县
|
平阳县
|
杨浦区
|
紫云
|
台前县
|
乌拉特前旗
|
灵丘县
|
江孜县
|
田林县
|
正蓝旗
|
什邡市
|
伊春市
|
贺州市
|
木兰县
|
确山县
|
九寨沟县
|
峨山
|
辽源市
|
上饶县
|
项城市
|
许昌县
|