Coder Social home page Coder Social logo

lehasas / pgpchatapp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 26 KB

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: MIT License

Java 100.00%
assymetric-key-cryptography cryptography java security

pgpchatapp's Introduction

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

pgpchatapp's People

Contributors

lehasas avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.