Package erki.talk

Examples of erki.talk.Crypto


                            keyExchange = new DHKeyExchange();
                            String publicKey = keyExchange.getPublicKey(pubKey);
                            sendEncrypt(this, publicKey);
                            Logger.info(this, getNick() + " initiated an "
                                    + "encrypted connection.");
                            crypto = new Crypto(keyExchange.getSecretKey());
                            encrypt = true;
                            sendEncryptInfo(this);
                        } else if (line.toUpperCase().equals("ENCRYPT")) {
                            sendError("You have to provide your public key "
                                    + "as argument!", this);
View Full Code Here


            @Override
            public void inform(CompleteEncryptionEvent event) {
               
                synchronized (cryptoLock) {
                    keyExchange.injectPublicKey(event.getPublicKey());
                    crypto = new Crypto(keyExchange.getSecretKey());
                    Logger.info(Connection.class, "Connection is now "
                            + "encrypted.");
                }
            }
        };
View Full Code Here

                                + "-----");
                    } else if (fromServer.toUpperCase().startsWith("ENCRYPT ")) {
                        String pubKey = fromServer.substring("ENCRYPT "
                                .length());
                        keyExchange.injectPublicKey(pubKey);
                        crypto = new Crypto(keyExchange.getSecretKey());
                        encrypt = true;
                        gui.appendLineToOutputBuffer("#I: Connection is "
                                + "encrypted now.");
                    } else if (fromServer.toUpperCase().startsWith("ERROR ")) {
                        gui.appendLineToOutputBuffer("#E: "
View Full Code Here

TOP

Related Classes of erki.talk.Crypto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.