亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? newaccountapplet.java

?? 一個木馬程序源碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
         //  Exit to login screen and destroy applet.         try         {            getAppletContext().showDocument(new URL(hushHome));         }  catch (MalformedURLException me)  { System.out.println("Malformed URL"); }         stop();         destroy();      }      return true;       }       /**    *  This method sets up a text field for a username.    */   private void enterUsername(String prompt)   {      removeAll();      add(this,new Label(prompt),0,0,1,1,0,0,0,0,N,NO,0,0,0,0);      add(this, new Label(         "Your HushMail email address will be <your-username>@hushmail.com."),         0,1,1,1,0,0,0,0,N,NO,0,0,0,0);      add(this,new Label(         "Your username should be at least 6 characters but no more than 32 characters."),         0,2,1,1,0,0,0,0,N,NO,0,0,0,0);      add(this,new Label(         "It should include only letters, numbers, hyphens(-), underscores(_), and dots(.)"),         0,3,1,1,0,0,0,0,N,NO,0,0,0,0);      format (usernameField = new TextField(32));      add(this,usernameField,0,4,1,1,0,0,0,0,N,NO,4,0,4,0);      format2(submitUsernameButton = new Button("Submit"));      add(this,submitUsernameButton,0,5,1,1,0,0,0,1,N,NO,4,0,4,0);      paintAll(getGraphics());      usernameField.requestFocus();   }   private boolean checkUsername(String name)   {      if (name.length()< 6) return false;      if (name.length()>32) return false;      if (!Character.isLetter(name.charAt(0))) return false;      for (int x=1; x<name.length(); x++)      {         char c=name.charAt(x);         if (!(Character.isLetterOrDigit(c)||c=='_'||c=='-'||c=='.')) return false;      }      return true;   }   /**    *  This method sets up a text field for a passphrase.    */   private void enterPassphrase(String prompt)   {      removeAll();      add(this,new Label (prompt),0,0,1,1,0,0,0,0,N,NO,0,0,0,0);      add(this,new Label ("Remember that your account is only as secure as your passphrase."),         0,1,1,1,0,0,0,0,N,NO,0,0,0,0);      add(this,new Label (         "Be sure it's long and contains an unpredictable variety of characters."),         0,2,1,1,0,0,0,0,N,NO,0,0,0,0);      add(this,new Label (         "If you lose or forget your passphrase your account will not be accessible."),         0,3,1,1,0,0,0,0,N,NO,0,0,0,0);      add(this,new Label (         "WE CANNOT RETRIEVE YOUR PASSPHRASE.  So be sure to write it down!"),         0,4,1,1,0,0,0,0,N,NO,0,0,0,0);      format (passphraseField=new TextField (64));      passphraseField.setEchoCharacter('*');      passphraseField.setEditable(true);      add(this,passphraseField,0,5,1,1,0,0,0,0,N,NO,4,0,4,0);      format2(submitPassphraseButton = new Button("Submit"));      add(this,submitPassphraseButton,0,6,1,1,0,0,0,1,N,NO,4,0,4,0);      paintAll(getGraphics());      passphraseField.requestFocus();   }   /**    *  This method sets up a text field for passphrase confirmation.    */   private void confirmPassphrase()   {      passphraseField.setEditable(false);      remove(passphraseField);      remove(submitPassphraseButton);      add(this,passphraseField,0,5,1,1,0,0,0,0,N,NO,4,0,4,0);      add(this,new Label("Please re-enter your passphrase for confirmation"),          0,6,1,1,0,0,0,0,N,NO,0,0,0,0);      format(passphraseConfirmField = new TextField(64));      passphraseConfirmField.setEditable(true);      passphraseConfirmField.setEchoCharacter('*');      add(this,passphraseConfirmField,0,7,1,1,0,0,0,0,N,NO,4,0,4,0);      format2(confirmPassphraseButton = new Button("Submit"));      add(this,confirmPassphraseButton,0,8,1,1,0,0,0,1,N,NO,4,0,4,0);      paintAll(getGraphics());      passphraseConfirmField.requestFocus();   }   /**    *  This method opens a socket connection and sends a message to the    *  server to create the new account.    */   private void createAccount()   {      String passphrase = passphraseField.getText();            removeAll();      if (!keysGenerated)      {         // Do a SHA1 hash of all collected random bytes in blocks of twenty at a time         byte[] privKeyBytes = bytes.dequeueBytes(KEYSTRENGTH / 8);            int bytesHashed = 0;         int remaining = privKeyBytes.length;         while ((remaining = privKeyBytes.length-bytesHashed) > 0 )         {            byte[] beingHashed = new byte[ (remaining >= 20) ? 20 : remaining ];            System.arraycopy(privKeyBytes,bytesHashed,beingHashed,0,beingHashed.length);            byte[] hashedBlock = new HushSHA1().SHA1Hash(beingHashed);            System.arraycopy(hashedBlock,0,privKeyBytes,bytesHashed,beingHashed.length);            bytesHashed = bytesHashed + beingHashed.length;         }         ElGamalKeys keys = new ElGamalKeys(privKeyBytes);         //  wipe array containing source of private key         for (int x = 0; x < privKeyBytes.length; x++) privKeyBytes[x]=0;         privKeyBytes = null;         BlowfishCipher encPriv = new BlowfishCipher();         encPriv.setKey(passphrase.getBytes());         publicKey = Conversions.bytesToHexString(keys.publicKey());              encPrivateKey = Conversions.bytesToHexString(encPriv.encrypt(keys.privateKey()));         encPriv = null;         /* Pause here while key generation is completed.          * After key generation:           *   publicKey = <a hex string representing the users public key>          *   encPrivateKey = <a hex string representing the users private key blowfish          *     encrypted by the passphrase>          */         keysGenerated = true;          }      byte[] passphraseHashBytes = new HushSHA1().SHA1Hash(passphrase);      byte[] halfPassphraseHashBytes = new byte[passphraseHashBytes.length/2];      System.arraycopy(passphraseHashBytes, 0,         halfPassphraseHashBytes, 0, halfPassphraseHashBytes.length);      String passphraseHash = Conversions.bytesToHexString(halfPassphraseHashBytes);      try      {         Socket s = new Socket(serverAddress,serverPort);         s.setSoTimeout(60000);         eIn = new BufferedInputStream(s.getInputStream());         out = new BufferedOutputStream(s.getOutputStream());         /* Write session ID unencrypted so the server          * can find the session key.          */         out.write(sessionIDBytes);          int infoCount = 4;         for (int x=0; x<userinfo.length(); x++)            if (userinfo.regionMatches(x,"\n",0,1)) infoCount++;              //  Send encrypted user information to the server         encryptAndWrite("NEWACCOUNT\n" + username +"\n"+ infoCount +"\n"+ publicKey +"\n"+            passphraseHash +"\n"+ encPrivateKey +"\n"+ diskspace +"\n"+ userinfo);         readAndDecrypt();         eIn.close();         out.close();         s.close();         if (!in.readLine().equals("OK")) error();         String response = in.readLine();         if (response.equals("NOT APPROVED"))            enterUsername("The username you selected is unavailable.  " +                          "Please enter a different username.");           else if (response.equals("APPROVED"))         {            //  Wipe Passphrase            //  Wipe passphrase fields            passphraseField.setText("");            passphraseConfirmField.setText("");            passphrase = "                                                               "+                         "                                                               "+                         "                                                               "+                         "                                                               ";            passphrase = null;            removeAll();              add(this, new Label("Your account has been created!"),               0,0,2,1,0,0,0,0,N,NO,0,0,0,0);            add(this, new Label("Your username is:"),0,1,1,1,0,0,.5,0,N,NE,0,0,0,0);            Label usernameLabel = new Label(username);            usernameLabel.setForeground(color);            add(this, usernameLabel,1,1,1,1,0,0,.5,0,N,NW,0,0,0,0);            add(this, new Label("Your email address is:"),0,2,1,1,0,0,.5,0,N,NE,0,0,0,0);            Label emailAddressLabel=new Label(username+"@hushmail.com");            emailAddressLabel.setForeground(color);            add(this, emailAddressLabel,1,2,1,1,0,0,.5,0,N,NW,0,0,0,0);            format2(loginButton = new Button("Click here to login"));            add(this, loginButton,0,4,2,1,0,0,0,1,N,NO,4,0,0,0);            paintAll(getGraphics());         }         else error();      }  catch (IOException ie) {error();}    }   private void error()   {      removeAll();      add(this, new Label(         "I'm sorry.  There has been an error."),    0,0,1,1,0,0,0,0,N,NO,0,0,0,0);      add(this, new Label("Please try again later."),0,1,1,1,0,0,0,0,N,NO,0,0,0,0);      format2(loginButton = new Button("Return home"));      add(this,loginButton,0,2,1,1,0,0,0,1,N,NO,4,0,0,0);      paintAll(getGraphics());   }     private void format(Component c)   {      c.setForeground(Color.black);      c.setBackground(Color.white);      c.setFont(new Font("Helvetica",Font.PLAIN,12));   }   private void format2(Component c)   {      c.setForeground(Color.black);      c.setBackground(new Color(192,192,192));      c.setFont(new Font("Helvetica",Font.PLAIN,12));   }   /**    *  Variables and methods for handling GridBagLayouts    */   private int C = GridBagConstraints.CENTER;   private int NW = GridBagConstraints.NORTHWEST;   private int NE = GridBagConstraints.NORTHEAST;   private int NO = GridBagConstraints.NORTH;   private int B = GridBagConstraints.BOTH;   private int H = GridBagConstraints.HORIZONTAL;   private int N = GridBagConstraints.NONE;   private int R = GridBagConstraints.REMAINDER;   /**    *  This method adds a Component to a Container which uses a GridBagLayout.    */   private void add(Container cc, Component comp, int x, int y, int w, int h, int ipx, int ipy,      double wtx, double wty, int fill, int anchor, int t, int l, int b, int r)    {      GridBagConstraints constraints = new GridBagConstraints();      constraints.gridx = x;      constraints.gridy = y;      constraints.gridwidth = w;      constraints.gridheight = h;      constraints.ipadx = ipx;      constraints.ipady = ipy;      constraints.weightx = wtx;      constraints.weighty = wty;      constraints.fill = fill;      constraints.anchor = anchor;      constraints.insets = new Insets(t,l,b,r);      LayoutManager ll = cc.getLayout();      GridBagLayout g = (GridBagLayout)ll;      g.setConstraints(comp, constraints);      cc.add(comp);   }    /**    *  This methods send the parameter string to the    *  server, calling appropriate encryption methods     *  and indicating the length.    */   private void encryptAndWrite(String output)   {      try      {         //  Send 16 bytes indicating the length of the output to follow         byte[] encOutputBytes = blowfishPipe.stringEncrypt(output);          int outLength = encOutputBytes.length;         out.write(blowfishPipe.encrypt(Conversions.intToBytes(outLength)));         out.write(encOutputBytes);         out.flush();	      }  catch (IOException e) {System.out.println("IOException");}   }   /**    *  This method reads in a set of bytes from the server    *  calls appropriate decryption methods, and stores a resulting    *  string in a buffer for later access.    */   private void readAndDecrypt() throws IOException   {      //  read in 16 bytes indicating the length of the input to follow      byte lengthBytes[] = new byte[16];      int bytesRead = eIn.read(lengthBytes);      while (bytesRead<16)         bytesRead = bytesRead + eIn.read(lengthBytes, bytesRead, 16-bytesRead);      int inLength = Conversions.bytesToInt(blowfishPipe.decrypt(lengthBytes));      //  read and decrypt the requested number of bytes      byte[] eBuf = new byte[inLength];      bytesRead = eIn.read(eBuf);      while (bytesRead<inLength)         bytesRead = bytesRead + eIn.read(eBuf, bytesRead, inLength-bytesRead);        String inString = blowfishPipe.stringDecrypt(eBuf);      byte[] trimmedBytes = new byte[inString.length()];      inString.getBytes(0, inString.length(), trimmedBytes, 0);      in = new DataInputStream(new ByteArrayInputStream(trimmedBytes));   }}  //  end NewAccountApplet

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产视频在线| 色天天综合久久久久综合片| 国产在线精品一区在线观看麻豆| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美激情综合在线| 久久精品人人做| 日韩欧美一二三四区| 亚洲欧美激情在线| 国产精品自在欧美一区| 在线播放亚洲一区| 亚洲视频图片小说| 国产高清精品网站| 欧美精品一区二区精品网| 一区二区三区在线观看欧美| 国产精品一品视频| 精品国产网站在线观看| 日韩中文字幕1| 欧美三级日本三级少妇99| 亚洲欧美视频在线观看| 成人网男人的天堂| 中文字幕精品一区| 成人精品视频一区| 欧美国产国产综合| 国产成人免费在线视频| 精品88久久久久88久久久| 日本免费新一区视频| 日韩一区二区在线观看视频播放| 成人深夜在线观看| 亚洲一区在线观看网站| 喷白浆一区二区| 欧美老肥妇做.爰bbww| 日韩美女精品在线| 97久久精品人人澡人人爽| 国产精品视频yy9299一区| 国产成人av一区| 日韩欧美高清在线| 精品一区二区三区久久久| 欧美一区二区三区人| 亚洲aaa精品| 日韩一区二区三区免费看| 久久精品国产免费| 久久视频一区二区| 懂色av一区二区三区免费观看 | 色综合天天做天天爱| 亚洲婷婷国产精品电影人久久| 99免费精品在线| 亚洲精品国产a久久久久久| 91麻豆国产福利精品| 美女视频一区二区| 色综合久久综合网欧美综合网| 欧美日韩成人在线| 另类成人小视频在线| 欧美精品一区二区三区蜜臀| 成人看片黄a免费看在线| 一区二区在线观看不卡| 欧美日韩精品二区第二页| 蜜桃精品视频在线观看| 一区二区三区免费网站| 日韩视频中午一区| 成人高清视频免费观看| 一二三区精品视频| 欧美一区二区成人6969| 国产成人在线免费观看| 亚洲欧美精品午睡沙发| 欧美一级一级性生活免费录像| 韩国理伦片一区二区三区在线播放| 中文字幕不卡在线| 欧美人与禽zozo性伦| 国产丶欧美丶日本不卡视频| 亚洲精品国产a久久久久久| 91精品中文字幕一区二区三区| 国产一区不卡在线| 亚洲一区在线观看免费| 久久综合成人精品亚洲另类欧美 | 亚洲精品日韩综合观看成人91| 日韩一区二区中文字幕| 91免费版pro下载短视频| 日韩专区欧美专区| 中文字幕在线观看一区| 日韩一区二区三| 91蜜桃免费观看视频| 亚洲精品视频在线看| 99久久精品国产毛片| 日韩久久精品一区| 久久久久亚洲蜜桃| 白白色亚洲国产精品| 一区二区三区在线视频播放| 一区免费观看视频| 2024国产精品| 欧美人xxxx| 成人激情视频网站| 免费成人av在线| 亚洲激情成人在线| 中文字幕不卡在线观看| 欧美精品一区二区三区高清aⅴ| 在线精品视频免费播放| 99久久精品免费看国产| 国产精品一区二区在线看| 免费看日韩a级影片| 亚洲国产毛片aaaaa无费看 | 国产精品女人毛片| 粉嫩一区二区三区性色av| 亚洲日本在线视频观看| 欧美日韩免费观看一区三区| 波波电影院一区二区三区| 久久爱www久久做| 日韩精品每日更新| 亚洲一区二区三区中文字幕在线| 国产免费久久精品| 久久久久久久久久看片| 日韩精品一区二区三区视频在线观看| 欧美欧美欧美欧美| 欧美日韩国产不卡| 欧美日韩午夜影院| 欧美日韩免费在线视频| 欧美日韩激情一区二区| 欧美日韩另类一区| 欧美日本国产视频| 欧美精品18+| 欧美网站大全在线观看| 欧美日韩一区在线| 在线综合视频播放| 日韩欧美资源站| 日韩精品一区在线| 久久久久久久久久电影| 国产欧美一区二区精品婷婷| 精品国产不卡一区二区三区| 亚洲欧洲色图综合| 亚洲三级在线免费观看| 欧美日韩激情在线| 欧美一区二区三区在线看| 欧美草草影院在线视频| 久久夜色精品国产欧美乱极品| 精品福利av导航| 亚洲国产精品二十页| 亚洲美女屁股眼交3| 亚洲妇女屁股眼交7| 免费成人在线影院| 国产成人av自拍| 91黄色激情网站| 在线不卡一区二区| 久久综合国产精品| 中文字幕一区av| 亚洲第四色夜色| 国内不卡的二区三区中文字幕| 成人黄色av电影| 欧美日韩一区二区三区不卡 | 亚洲视频一二三区| 石原莉奈在线亚洲二区| 国产v日产∨综合v精品视频| 91视频www| 色女孩综合影院| 国产精品高潮呻吟| 尤物视频一区二区| 奇米色一区二区| 粉嫩蜜臀av国产精品网站| 成人国产在线观看| 欧美日韩一区二区不卡| 久久人人97超碰com| 亚洲视频精选在线| 久久99精品久久只有精品| 99久久精品国产导航| 制服视频三区第一页精品| 中文字幕精品—区二区四季| 亚洲成人动漫在线免费观看| 丁香六月久久综合狠狠色| 欧美日韩精品一区二区三区| 国产女同性恋一区二区| 日韩激情在线观看| 色综合久久综合| 国产亚洲欧美激情| 美女一区二区在线观看| 欧亚一区二区三区| 国产精品久久福利| 久久99九九99精品| 337p亚洲精品色噜噜狠狠| 亚洲人123区| 国产mv日韩mv欧美| 91亚洲国产成人精品一区二区三| 日本成人在线看| 国产欧美日韩在线看| 免费观看久久久4p| 欧美性受xxxx黑人xyx| ...xxx性欧美| 国产精品99久| 精品国产一区二区三区av性色 | 麻豆91在线观看| 欧美天堂一区二区三区| 亚洲嫩草精品久久| 91一区在线观看| 国产精品黄色在线观看| 国产乱码精品一区二区三区忘忧草| 日韩一区二区免费电影| 亚洲成av人片在线观看| 欧美视频在线一区| 亚洲高清不卡在线| 欧美精品一级二级三级| 亚洲国产视频直播| 欧美精品tushy高清| 日韩精品成人一区二区三区|