Eclipse Verification Code

Source: Internet
Author: User
Tags readline dmca

Package Myeclipse;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 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" 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.uti L.calendar cal = java.util.Calendar.getInstance ();        Cal.add (1, 3);        CA L.add (6,-1);        Java.text.NumberFormat NF = new Java.text.DecimalFormat ("$");    &NB Sp   Licensenum = Nf.format (integer.valueof (licensenum));        String vertime = new StriNgbuilder ("-"). Append (                new Java.text.SimpleDateFormat ("YyMMdd"). Format (Cal.gettime ()))                 Append ("0"). ToString ();    & nbsp   String type = "ye3mp-";        String need = new StringBuilder (userid.substring (0, 1)). Append (t ype)                 Append ("+"). Append (Licensenum). Append (vertime). toString ();        String dx = new StringBuilder (need). Append (LL). Append (userId)         &N Bsp      . toString ();        int suf = this.decode (dx);        String Code = new StringBuilder (need). Append (string.valueof (SUF))                . Tostri Ng ();        return This.change (code);   }       private int decode (STR ing s) {    &nbsP   int i;        char[] ac;        int j;        int K;&NB Sp       i = 0;        AC = S.tochararray ();        j = 0;  &nbsp ;     k = ac.length;        while (J < K) {            i = (3 1 * i) + ac[j];            j++;       }        Retu RN 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;        Whil E (I < k) {&nbsp           j = abyte0[i];            if ((J >=) && (j <=) {                J = (((j-48) + 5)%) + 48;      &N Bsp     Else if ((J >=) && (J <=)) {                J = ((((j-65) +)%) + 65;           } else if ((J >=) && (J <= 122)) {                J = (((j-97) + +) + 97;        &NBSP ;  }            ac[i] = (char) j;            i++;  &N Bsp    }        return string.valueof (AC);   }       public Myec Lipsegen () {        super ();   }       public static void main (string[] Args {        Try {            SYSTEM.OUT.PRINTLN ("Please input register nam E: ");            BufferedReader reader = new BufferedReader (new InputStreamReader (  &NB Sp                 system.in);            String Useri D = null;            userId = Reader.readline ();            My Eclipsegen Myeclipsegen = new Myeclipsegen ();            String res = myeclipsegen.getserial (UserId, "20"); Unlimited edition changes 20 to 0            SYSTEM.OUT.PRINTLN ("Serial:" + res);        &NBS P   Reader.readline ();       } catch (IOException ex) {       }    }}

Eclipse Verification Code

Related Article

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.