* added encryption to chat
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package org.orinprojects;
|
||||
|
||||
import org.bouncycastle.crypto.AsymmetricCipherKeyPair;
|
||||
import org.orinprojects.encryption.Encryption;
|
||||
import org.orinprojects.encryption.EncryptionUtil;
|
||||
import org.orinprojects.exceptions.ArgumentsException;
|
||||
|
||||
import javax.crypto.SecretKey;
|
||||
@@ -30,8 +29,8 @@ public class Server {
|
||||
public static SecretKey aesKey;
|
||||
|
||||
public static void main(String[] args) throws IOException, ArgumentsException, NoSuchAlgorithmException {
|
||||
Server.serverKeys = Encryption.generateRSAKey();
|
||||
Server.aesKey = Encryption.generateAESKey();
|
||||
Server.serverKeys = EncryptionUtil.generateRSAKeys();
|
||||
Server.aesKey = EncryptionUtil.generateAESKey();
|
||||
|
||||
int portNumber = getPortNumber(args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user