Java Program Generation Registration Code __java

Source: Internet
Author: User
Tags readline dmca

Import java.io.*;
Import java.text.*;
Import Java.util.Calendar;
Import java.awt.datatransfer.*;

Public class T {
  private void Go () throws Exception {
    bufferedreader br = new Bufferedr Eader (New InputStreamReader (system.in));
    System.out.println ("Xxxclipse cracker");
    System.out.print ("Please Input User ID:");
    String userId = Br.readline ();
    if (userid.length () = 0)
      return;
    String serialstring = getserial (userId, "200");
    System.out.println ("Serial Code:" + serialstring);
    Java.awt.Toolkit.getDefaultToolkit (). Getsystemclipboard (). setcontents (
         new StringSelection (serialstring), null);
    System.out
        println ("Note:the serial code has succefully copied into clipboard!/npress ' Enter ' to exit ... ");
    br.readline ();
 }

public static void Main (String args[]) throws Exception {
New T (). Go ();
}
public string Getserial (string userId, String licensenum) {
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 = (New StringBuilder ("-")). Append (
(New SimpleDateFormat ("YyMMdd")). Format (Cal.gettime ()). Append ("0"). toString ();
String type = "ye3mp-";
String need = (new StringBuilder (userid.substring (0, 1)). Append (Type). Append ("the"). Append (
Licensenum). Append (Vertime). toString ();
String dx = (new StringBuilder (need))
. Append (
"Decompiling This copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright A CT 1998 (<a href= "Http://www.loc.gov/copyright/legislation/dmca.pdf" target=_blank>http://www.loc.gov/ copyright/legislation/dmca.pdf</a>). 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 StringBuilder (Need)). Append (string.valueof (SUF)). ToString ();
Return change (code);
}

  Private 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 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 <=)
        j = ((j-48) + 5)% 10 + 48;
      Else if (J >= && J <=)
      & nbsp j = ((j-65) + 13)% 26 + 65;
      Else if (J >= <= && J 122)
      & nbsp 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.