Import java. Io .*;
Public class myeclipsegen {
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 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 = new myeclipsegen ();
String res = myeclipsegen. getserial (userid, "20 ");
System. Out. println ("Serial:" + Res );
Reader. Readline ();
} Catch (ioexception ex ){
}
}
}
--------------------------------------------------------------------
Run the above Code to generate and run it.
Enter your name
Then you can generate the registration code,
Register now!