首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > Java > Myeclipse 5.1 注册码算法[转]
【标  题】:Myeclipse 5.1 注册码算法[转]
【关键字】:Myeclipse,5.1
【来  源】:http://blog.csdn.net/jinyupei25/archive/2006/12/29/1468178.aspx

Myeclipse 5.1 注册码算法[转]

public class Main {
private static final String L = "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 static void main(String[] args) {
String userId 
= "xiangfei";
//MyEclipse4.1 GA 其中491(4.9.1)/400(4.0)/401(4.1)/501(5.1.0),()内为版本号,9912310代表注册码过期时间2099/12/31
String need = userId.substring(0,1+ "YE3MP-401-00-9912310";
//MyEclipse4.0.0 GA
//String need = userId.substring(0,1) + "YE3MP-400-01-9912310";
//MyEclipse4.9.1
//String need = userId.substring(0,1) + "YE3MP-491-01-9912310";
//MyEclipse5.1.0 GA
//String need = userId.substring(0,1) + "YE3MP-501-00-9912310";
String dx = need + L + userId;
int suf = decode(dx);
//System.out.println("SUF:"+suf);
String code = need + suf;
System.out.println(change(code));
}

static int decode(String s) {
int i = 0;
char ac[] = s.toCharArray();
int j = 0;
for(int k = ac.length; j < k; j++{
= 31 * i + ac[j];
}

return Math.abs(i);
}

static String change(String s) {
byte abyte0[] = s.getBytes();
char ac[] = new char[s.length()];
int i = 0;
for(int k = abyte0.length; i < k; i++{
int j = abyte0[i];
if(j >= 48 && j <= 57)
= ((j - 48+ 5% 10 + 48;
else
if(j >= 65 && j <= 90)
= ((j - 65+ 13% 26 + 65;
else
if(j >= 97 && j <= 122)
= ((j - 97+ 13% 26 + 97;
ac[i] 
= (char)j;
}

return String.valueOf(ac);
}

}


大家有需要的,可以直接运行一下生成注册码就行了,
java中的正则表达式,揭开你神秘的面纱:【上一篇】
是不是用扫描扫进去的?还是用鼠标画:【下一篇】
【相关文章】
  • ZoneAlarmPro v5.5.114 Oem豪华中文零售
  • 图解MyEclipse配置struts+hibernate+spring+FreeMarker
  • 利用MyEclipse自动生成Hibernate的相关文件
  • MyEclipse+struts+Hibernate配置开发
  • :[求助]Tomcat 5.5.10 Server无法启动服务
  • Myeclipse4.0 Tomcat5.0 j2sdk1.5搭建J2EE一
  • Hacmp 5.1 的配置方法
  • XPSP2装IIS5.1出现http500错误(Server Application error)
  • MyEclipse3.X----MyEclipse4.X---MyEclipse5.X 注册机
  • Myeclipse所有版本注册码的通用算法(修改版)
  • 【随机文章】
  • 传奇世界 1.72版天玄套装分析
  • 数据存储基础(新手必读)
  • DSL技术疑难简析
  • 用Word 2002制作古诗词书卷
  • 封装
  • 介绍一个完全托管代码的对象数据库DB4O
  • 2004年雅典奥运会采用Molex企业布线解决方案
  • Windows Updates Downloader 中文XP系统文件更新
  • linux下的execv与windows下的__execv
  • 避免创建重复的对象
  • 【相关评论】
    发表人:wsw Post @ 2007-2-8 0:11:02
    邮件:
    一个字,牛!
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.