Skip to content

This project was for my Networks and Internet Security Honours Course, we implemented a group chat app following the principles of pretty good privacy

License

Notifications You must be signed in to change notification settings

lehasaS/PGPChatApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PGPChatApp

Introduction

This project demonstrates a command-line group chat interface, and features both cryptographic and compression techniques.

Running the Program

A Note on Debugging: This program makes use of configurable debugging output to demonstrate the flow of the program. Toggling this is achieved by the <debug mode> command-line argument. When this is set to 1, expect to see detailed debugging output. For an uninterrupted experience, set 0 as this parameter.

A Note on ports and hostnames: To enable successful connection, clients and the server must set the same port number. This can be any four digit, valid port configuration. Clients should select a common host-name. To run the program on your own network, selecting localhost for this parameter is advisable.

A Note on the external libraries: When compiling and executing, an additional cp parameter is required due to the use of the Bouncy Castle library. The required external libraries are included within the extlibs folder.

A Note on the AsymmetricUtility unit tests: To run the unit tests for AsymmetricUtility, please remove the "BC" in the getInstance() method in the AssymetricUtility.java class when you generate the keys.

Compilation

In the directory with the java files do the following: To compile all java files:

[Windows] javac -cp '.\extlibs\*' .\*.java
[Linux] javac -cp './extlibs/*' ./*.java

The Server

Please run the code with the following parameters:

[Windows] java -cp '.:.\extlibs\*' Server <port> <debug mode>
[Linux] java -cp '.:./:extlibs/*' Server <port> <debug mode>

The Client

Please run the code with the following parameters:

[Windows] java -cp '.:.\extlibs\*' Client <port> <hostname> <debug mode>
[Linux] java -cp '.:./:extlibs/*' Client <port> <hostname> <debug mode>

Quick Config

This configuration is supplied to enable easy copying and pasting as you prepare to execute this chat program with debugging output.

[Windows]
javac -cp '.\extlibs\*' .\*.java

java -cp '.:.\extlibs\*;' Server 8080 1

java -cp '.:.\extlibs\*;' Client 8080 localhost 1

[Linux]
javac -cp './extlibs/*' ./*.java

java -cp '.:./:extlibs/*' Server 8080 1

java -cp '.:./:extlibs/*' Client 8080 localhost 1

About

This project was for my Networks and Internet Security Honours Course, we implemented a group chat app following the principles of pretty good privacy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages