Import Java.io.BufferedReader; Import java.io.IOException; Import Java.io.InputStreamReader; public class Myeclipsegen {private static final String LL = "Decompiling the copyrighted software is a violation of B OTH 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" 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 ("+"). Append (Licensenum). Append (Verti Me). 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 = (+ * 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 >=) && (J <= 57)){j = (((j-48) + 5)% 10) + 48; } else if ((J >=) && (J <=)) {j = (((j-65) + 13)% 26) + 65; } else if ((J >=) && (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) {}}}
MyEclipse 6.5 Registration Machine