Java Registration code Generation code

Source: Internet
Author: User

Import Java.text.DecimalFormat;
Import Java.text.NumberFormat;
Import Java.text.SimpleDateFormat;
Import Java.util.Calendar;
/**
* MyEclipse Blue 7.5 keygen
* @author Administrator
*
*/
public class Crack {
public static final void main (string[] args) {
String id = "Steven"; But give your name more.
String num = "999";//number of licenses
SYSTEM.OUT.PRINTLN (getserial (ID, "M", Num, false));
}
public static string Getserial (String userId, string version,
String Licensenum, Boolean selected) {
Calendar cal = Calendar.getinstance ();
Cal.add (1, 3);
Cal.add (6,-1);
NumberFormat NF = new DecimalFormat ("000");
Licensenum = Nf.format (integer.valueof (licensenum));
String Vertime = selected? (New StringBuffer ("-")). Append (
(New SimpleDateFormat ("YyMMdd")). Format (Cal.gettime ()). Append (
"0"). ToString (): "-1012310";
String type = "ye3mb-";
String need = (new StringBuffer (string.valueof (userid.substring (0, 1)))
. append (Type). Append (Version). Append (Licensenum)
. Append (Vertime). toString ();
String dx = (new StringBuffer (string.valueof (need))
. Append (
"Decompiling This copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright A CT 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 for a-a-a-imprisonment . About it; Pay for a license, avoid prosecution, and feel better about yourself. ")
. Append (UserId). toString ();
int suf = decode (dx);
String code = (New StringBuffer (string.valueof (Need)). Append (
String.valueof (Suf)). ToString ();
Return change (code);
}
private static int decode (String s) {
int i = 0;
Char ac[] = S.tochararray ();
int j = 0;
for (int k = Ac.length J < K; J + +)
i = * i + ac[j];
return Math.Abs (i);
}
private static String change (string s) {
byte abyte0[] = S.getbytes ();
Char ac[] = new Char[s.length ()];
int i = 0;
for (int k = Abyte0.length i < K; i++) {
Int j = Abyte0[i];
if (J >= && J <= 57)
j = ((j-48) + 5)% 10 + 48;
else if (J >= && J <= 90)
j = ((j-65) + 13)% 26 + 65;
else if (J >= && J <= 122)
j = ((j-97) + 13)% 26 + 97;
Ac[i] = (char) j;
}
return string.valueof (AC);
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.