Today, I will introduce you to the registration code registration, which is dynamic and convenient. Why is it convenient? Because the registration code may be blocked, unless your computer does not connect to the Internet.
If it is blocked, we can only register again. Now we will teach you how to implement registration through Java code. Download:Myeclipse7.1English official version
1. Create a project and name it as needed.
2. Create a class named Reg.
3. Execute the code
4. Enter the registration name. Please input register name: appears in the column. Enter the English name and press Enter. The registration code is displayed. Name and registration code:
YLR8ZC-855550-67597656751799913 this form of replication down, note that I am running this generated. You need to copy the code on your machine.
5. Go to myeclipse and enter subscriber and subscriber code.
Address: http://www.accptech.com/Sharing/s2/749.html
Register Java code:
Import java. Io. bufferedreader;
Import java. Io. ioexception;
Import java. Io. inputstreamreader;
Public class Reg {
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 Reg (){
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 ();
Reg myeclipsegen = new Reg ();
String res = myeclipsegen. getserial (userid, "5 ");
System. Out. println ("Serial:" + Res );
Reader. Readline ();
} Catch (ioexception ex ){
}
}
}