---
title: "MyEclipse Keygen"
author: "sunrie"
date: "2007-03-08T10:45:00Z"
tags: []
slug: "myeclipse-keygen"
draft: false
lastmod: "2007-03-08T10:45:00Z"
id: 58160
url: "https://sunrie.iteye.com/blog/58160"
---

java 代码

 

01. /\**
02. * MyEclipse注册机
03. \*/
04. import java.io.\*;
05. public class Crack {
06. public static String convert(String s) {
07. if (s == null || s.length() == 0)
08. return s;
09. byte abyte0\[] = s.getBytes();
10. char ac\[] = new char\[s.length()];
11. int i = 0;
12. for (int k = abyte0.length; i &lt; k; i++) {
13. int j = abyte0\[i];
14. if (j &gt;= 48 && j &lt;= 57)
15. j = ((j - 48) + 5) % 10 + 48;
16. else if (j &gt;= 65 && j &lt;= 90)
17. j = ((j - 65) + 13) % 26 + 65;
18. else if (j &gt;= 97 && j &lt;= 122)
19. j = ((j - 97) + 13) % 26 + 97;
20. ac\[i] = (char) j;
21. }
22. return String.valueOf(ac);
23. }
24. private static int hash(String s) {
25. int i = 0;
26. char ac\[] = s.toCharArray();
27. int j = 0;
28. for (int k = ac.length; j &lt; k; j++)
29. i = 31 * i + ac\[j];
30. return Math.abs(i);
31. }
32. private static String inputString() {
33. BufferedReader bufferedreader = new BufferedReader(
34. new InputStreamReader(System.in));
35. String s = null;
36. try {
37. s = bufferedreader.readLine();
38. } catch (IOException ioexception) {
39. ioexception.printStackTrace();
40. }
41. return s;
42. }
43. public static void main(String\[] args) {
44. try {
45. System.out.println("My Eclipse IDE v9.99 Keygen");
46. System.out.print("License Name : ");
47. String s = inputString();
48. String licStr = "YE3MP-999-00-9912310";
49. String h = s.substring(0, 1)
50. + licStr
51. + "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."
52. + s;
53. int j = hash(h);
54. String lic = s.substring(0, 1) + licStr + Integer.toString(j);
55. System.out.println("License Key  : " + convert(lic));
56. } catch (Exception exception) {
57. exception.printStackTrace();
58. }
59. }
60. }