Intellij idea 14 keygen and source code

Source: Internet
Author: User
Tags crc32 pow

Registration Machine Download
IntelliJ idea 14 keygen and source code

Software interface

Program source Code

Ideakeygen.java

/* License header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package Ideakeygen;import Javafx.application.application;import Javafx.fxml.fxmlloader;import Javafx.scene.parent;import javafx.scene.scene;import Javafx.scene.image.image;import javafx.stage.Stage;/** * * @ Author Splas */public Class Ideakeygen extends application {@Override public void start (stage stage) throws Exc                eption {Parent root = Fxmlloader.load (GetClass (). GetResource ("Fxmldocument.fxml"));                Scene scene = new scene (root);                 Set the form title Stage.settitle ("IntelliJ idea 14 keygen");                Set the form icon Stage.geticons (). Add (New Image (GetClass (). getResourceAsStream ("Fireeyes.png")));        Stage.sizetoscene ();        Stage.centeronscreen ();                Stage.setresizable (FALSE);        Stage.setscene (Scene);    Stage.show ();   } /** * @param args the command line arguments */public static void main (string[] args) {launch (args); }    }


Fxmldocumentcontroller.java

/* License header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package ideakeygen;import java.math.biginteger;import java.net.url;import java.util.date;import java.util.Random; Import Java.util.resourcebundle;import Java.util.zip.crc32;import Javafx.beans.value.observablevalue;import Javafx.event.actionevent;import Javafx.fxml.fxml;import Javafx.fxml.initializable;import Javafx.scene.control.button;import Javafx.scene.control.textfield;import Javafx.scene.input.clipboard;import Javafx.scene.input.clipboardcontent;import javafx.stage.stage;/** * * @author Splas */public class        Fxmldocumentcontroller implements initializable {@FXML private TextField textfielduserid;         @FXML private TextField Textfieldkey;        @FXML private void Handlebuttoncopy (ActionEvent event) {Clipboard Clipboard = Clipboard.getsystemclipboard (); ClipboardcontentContent = new Clipboardcontent ();        Content.putstring (Textfieldkey.gettext ());    Clipboard.setcontent (content); } @FXML private void Handlebuttonclose (ActionEvent event) {(Stage) ((Button) (Event.getsource ()))    . Getscene (). GetWindow ()). Close (); } @Override public void Initialize (URL url, resourcebundle rb) {//TODO textfieldkey.seteditable (        FALSE);                Random r = new Random (); Textfielduserid.textproperty (). AddListener ((observablevalue<? extends string> observable, String OldValue,            String newvalue), {if (Newvalue.isempty ()) {textfieldkey.clear ();            } else {Textfieldkey.settext (Makekey (newvalue, 0, R.nextint (100000)));    }                    }); }/*---------------------------------------keygen algorithm----------------------------------------*//    * * @param s * @param i * @param bytes * @return */public static short GETCRC (String s, int i, byte bytes[]) {CRC32 CRC32        = new CRC32 (); if (s! = null) {for (int j = 0; J < S.length (); j + +) {char c = S.charat (j                );            Crc32.update (c);        }} crc32.update (i);        Crc32.update (i >> 8);        Crc32.update (i >> 16);        Crc32.update (i >> 24);            for (int k = 0; k < bytes.length-2; k++) {byte byte0 = bytes[k];        Crc32.update (BYTE0);    } return (short) (int) crc32.getvalue ();    }/** * @param biginteger * @return String * * public static string encodegroups (BigInteger BigInteger)        {BigInteger Beginner1 = biginteger.valueof (0x39aa400l);        StringBuilder sb = new StringBuilder (); for (int i = 0; Biginteger.compareto (biginteger.zero)! = 0; i++) {int J = biginteger.mod (Beginner1). Intvalue ();            String S1 = Encodegroup (j);            if (i > 0) {sb.append ("-");            } sb.append (S1);        BigInteger = Biginteger.divide (beginner1);    } return sb.tostring ();  }/** * @param i * @return */public static String encodegroup (int i) {StringBuilder sb = new        StringBuilder ();            for (int j = 0; J < 5; J + +) {int k = i% 36;            char c;            if (K <) {c = (char) (+ K);            } else {c = (char) ((+ + K)-10);            } sb.append (c);        I/= 36;    } return sb.tostring (); }/** * @param name * @param days * @param ID * @return */public static string Makekey (string n        Ame, int days, int id) {ID%= 100000;        byte bkey[] = new BYTE[12]; Bkey[0] = (byte) 1; Product Type:intEllij idea is 1 bkey[1] = 14;        Version Date d = new Date ();        Long ld = (D.gettime () >> 16);        BKEY[2] = (byte) (LD & 255);        BKEY[3] = (byte) ((LD >> 8) & 255);        BKEY[4] = (byte) ((LD >> +) & 255);        BKEY[5] = (byte) ((LD >>) & 255);        Days &= 0xFFFF;        BKEY[6] = (byte) (Days & 255);        BKEY[7] = (byte) ((Days >> 8) & 255);        BKEY[8] = 105;        Bkey[9] =-59;        BKEY[10] = 0;        BKEY[11] = 0;        int w = GETCRC (name, id% 100000, bkey);        BKEY[10] = (byte) (w & 255);        BKEY[11] = (Byte) ((W >> 8) & 255);        BigInteger POW = new BigInteger ("89126272330128007543578052027888001981", 10);        BigInteger mod = new BigInteger ("86f71688cdd2612ca117d1f54bdae029", 16);        BigInteger K0 = new BigInteger (bkey);        BigInteger K1 = k0.modpow (pow, mod);        String S0 = integer.tostring (ID);        String sz = "0"; WHile (S0.length ()! = 5) {S0 = Sz.concat (S0);        } S0 = S0.concat ("-");        String S1 = encodegroups (k1);        S0 = S0.concat (S1);    return s0; }}

Fxmldocument.fxml

<?xml version= "1.0" encoding= "UTF-8"? ><?import javafx.geometry.*?><?import java.lang.*?><? Import Java.util.*?><?import Javafx.scene.*?><?import Javafx.scene.control.*?><?import Javafx.scene.layout.*?><anchorpane id= "Anchorpane" prefheight= "239.0" prefwidth= "392.0" xmlns= "/HTTP/ JAVAFX.COM/JAVAFX/8 "xmlns:fx=" HTTP://JAVAFX.COM/FXML/1 "fx:controller=" Ideakeygen. Fxmldocumentcontroller "> <children> <gridpane alignment=" CENTER "layoutx=" 5.0 "layouty=" 10.0 "Prefheigh            t= "218.0" prefwidth= "380.0" > <columnConstraints> <columnconstraints hgrow= "Always"/> <columnconstraints/> </columnConstraints> <rowConstraints> &LT;ROWC         onstraints/> <rowconstraints/> <rowconstraints/> </rowConstraints> <children> <textfield fx:id= "Textfielduserid" layoutx= "73.0" layouty= "41.0"; <GridPane.margin> <insets bottom= "8.0" left= "8.0" right= "8.0" top= "8.0"/> <  /gridpane.margin> </TextField> <button fx:id= "buttoncopy" layoutx= "261.0" layouty= "93.0" minheight= "40.0" minwidth= "60.0" mnemonicparsing= "false" onaction= "#handleButtonCopy" text= "copy" gridpane.columnindex= "1" gridpane.rowindex= "1" > <GridPane.margin> <insets Botto            M= "8.0" left= "8.0" right= "8.0" top= "8.0"/> </GridPane.margin> </Button> <button fx:id= "Buttonclose" layoutx= "107.0" layouty= "144.0" minheight= "40.0" minwidth= "100.0" mnemonicparsing= " False "onaction=" #handleButtonClose "text=" Off "gridpane.columnspan=" 2 "gridpane.halignment=" CENTER " gridpane.rowindex= "2" > <GridPane.margin> <insets bottom= "16.0" left= "16.0" righ t= "16.0" top= "16.0"/> </gridpane.margin&Gt               </Button> <textfield fx:id= "Textfieldkey" layoutx= "73.0" layouty= "93.0" gridpane.rowindex= "1" >               <GridPane.margin> <insets bottom= "8.0" left= "8.0" right= "8.0" top= "8.0"/> </GridPane.margin> </TextField> </children> </GridPane> </child Ren></anchorpane>


Reference articles

IntelliJ Idea 14 registration code


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Intellij idea 14 keygen and source code

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.