import java.io.bufferedreader;import java.io.ioexception;import java.io.inputstreamreader; public class myeclipsekeygen {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 (";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 >= && (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 myeclipsekeygen () {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 (); Myeclipsekeygen myeclipsekeygen = new myeclipsekeygen (); String res = myeclipsekeygen.getserial (userid, "5"); System.out.println ("Serial:" + res); Reader.readline ();} catch (Ioexception ex) {}}}
MyEclipse Registration Machine