GitXplorerGitXplorer
o

sochat

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
0b9b1cab15a863e3afce3770936db9231f103f00

Update README.md

ooleg-codaio committed 10 years ago
Unverified
d9ca732b0780fb5934812a708fde42de6fcdf93c

Update ChatServer.java

ooleg-codaio committed 10 years ago
Unverified
39aa45169ca3d7a42453f9a0fce2a16900220253

Update ChatClient.java

ooleg-codaio committed 10 years ago
Unverified
e48de153cd18f84eb4cf79a4b7175e364be6edf3

Update README.md

ooleg-codaio committed 10 years ago
Unverified
083dc77817ddc06f0d403ce13f24d0645318ee3c

Reformatted README

ooleg-codaio committed 10 years ago
Unverified
76a08b41ef77e14dff7213a23ddb934d0b8a544b

Done

ooleg-codaio committed 11 years ago

README

The README file for this repository.

sochat

soChat - secure instant messaging service.

Implementation

This is a server-based messaging service. The assumptions are that the server contains the list of usernames, and the respective salted Lamport's n-fold hashes.

The login protocol for each client securely establishes a symmetric key for client-server communication.

Actual messaging between clients is established though a modified Needham-Schroeder protocol; the server is used as an intermediary to mutually verify the clients' identities and establish an ephemeral shared key.

Installation and Runnning

First, go into the _bin/ directory, which contains runnable JAR files.

These instructions are for Windows. Both the client and the server have configuration files.

To run the server: java -jar server.jar 9000

To run the client: java -jar client.jar

Registered users:

Username          Password 
saba              sabap
oleg              olegp
joni              jonip
amirali           amirp
guevara           guevp

Usage

To get a list of connected users, type:

list 

in the command prompt. This command is called automatically when a user connects at first. To send a message to another user, for example, to send a message to oleg as saba, type:

send oleg WHATEVERMESSAGEYOUWANTTOSEND

into the command prompt. The thing to note here is that it is only possible to send a message to the user you know is connected, thus, if you have called the list command and the recipient user has showed up on that list. If the user you want to send a message to connected after your last list command, you won't be able to send him a message unless he contacts you first or until you call the list command again.