import java.io.*;
/**
* MyEclipse6.0 Register Code
* @author 匿名
*
*/
public class KeyGenerator {
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 KeyGenerator() {
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();
KeyGenerator myeclipsegen = new KeyGenerator();
String res = myeclipsegen.getSerial(userId, "20");
System.out.println("Serial:" + res);
reader.readLine();
} catch (IOException ex) {
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
学生就业管理系统
共130个文件
jsp:67个
gif:31个
jar:9个
3星 · 超过75%的资源 需积分: 20 135 下载量 105 浏览量
2014-06-07
15:37:27
上传
评论 22
收藏 13.28MB RAR 举报
温馨提示
实现毕业生就业信息管理系统的主要功能,包括管理员对企业信息、毕业生信息的添加、删除的管理操作;毕业生、企业在前台的浏览、查询等功能。 利用Jsp技术和SQL数据库实现。
资源推荐
资源详情
资源评论
收起资源包目录
学生就业管理系统 (130个子文件)
KeyGenerator.class 4KB
.classpath 1KB
zgd.gif 5.13MB
zgd.gif 5.13MB
login.gif 1.41MB
s_3.gif 779B
s_3.gif 779B
s_5.gif 777B
s_5.gif 777B
s_4.gif 776B
s_4.gif 776B
s_6.gif 774B
s_6.gif 774B
s_1.gif 773B
s_1.gif 773B
s_2.gif 763B
s_2.gif 763B
top_l1.gif 486B
top_l1.gif 486B
top_r1.gif 479B
top_r1.gif 479B
bottom_r1.gif 433B
bottom_r1.gif 433B
bottom_l1.gif 417B
bottom_l1.gif 417B
top_lbg.gif 98B
top_lbg.gif 98B
bottom_bg.gif 96B
bottom_bg.gif 96B
common_left.gif 93B
common_left.gif 93B
common_right.gif 93B
common_right.gif 93B
login.html 2KB
stu_message_sign.html 2KB
stu_message_sign.html 2KB
dom4j.jar 475KB
proxool-0.9.0RC3.jar 430KB
msbase.jar 280KB
mssqlserver.jar 65KB
commons-io-1.2.jar 64KB
msutil.jar 58KB
commons-fileupload-1.1.jar 31KB
commons-logging.jar 31KB
commons-fileupload.jar 22KB
KeyGenerator.java 3KB
s_8.jpg 9KB
s_8.jpg 9KB
s_7.jpg 9KB
s_7.jpg 9KB
s_9.jpg 9KB
s_9.jpg 9KB
cla_count.jsp 16KB
cla_count.jsp 16KB
sub_count.jsp 14KB
sub_count.jsp 14KB
ins_count.jsp 13KB
ins_count.jsp 13KB
stu_message_select_7.jsp 11KB
new_visa_select_1.jsp 10KB
cla_count_detail.jsp 10KB
stu_message_update1.jsp 9KB
stu_message.jsp 7KB
stu_message_add1.jsp 7KB
stu_message_select.jsp 6KB
stu_message_select_4.jsp 5KB
stu_message_select_6.jsp 5KB
stu_message_update2.jsp 5KB
stu_message_select_3.jsp 5KB
stu_message_select_5.jsp 5KB
stu_message_select_2.jsp 5KB
stu_message_select_1.jsp 5KB
stu_message_add2.jsp 5KB
stu_manage_update1.jsp 5KB
cla_message_update1.jsp 4KB
admin_menu.jsp 3KB
ins_message_update2.jsp 3KB
cla_message_add1.jsp 3KB
ins_message_add2.jsp 3KB
classes_message.jsp 3KB
per_stu_update1.jsp 3KB
new_visa_select.jsp 3KB
login_check.jsp 3KB
subject_message.jsp 3KB
adm_update1.jsp 3KB
sub_message_update1.jsp 3KB
institute_tasklist.jsp 3KB
per_stu_pwd_update1.jsp 2KB
stu_message_teachername.jsp 2KB
adm_update2.jsp 2KB
per_stu_menu.jsp 2KB
stu_message_classname.jsp 2KB
cla_message_group.jsp 2KB
stu_manage_update2.jsp 2KB
stu_message_institutename.jsp 2KB
per_stu_pwd_update2.jsp 2KB
sub_message_add1.jsp 2KB
cla_message_update2.jsp 2KB
ins_message_update1.jsp 2KB
per_stu_update2.jsp 2KB
共 130 条
- 1
- 2
资源评论
- Flower_wsh2015-10-09挺好的,但是我需要asp。net的,这个是java的
- 古石月2015-06-03一般,帮助不大
- maoqiao25902017-05-03里面src下只有一个文件
gbgblcy
- 粉丝: 5
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功