The following instructions have been tested on Ubuntu 14.04.
-
Install Tor via
sudo apt-get install tor
-
Set up Tor hidden service by editing /etc/tor/torrc and add the following lines
HiddenServiceDir /home/username/chattor
HiddenServicePort 3000 127.0.0.1:3000
-
Change config to such that the
clientDir
matches theHiddenServiceDir
from above,clientPort
should matchHiddenServicePort
andsecretKey
should point to an ASCII armored PGP secret key file. -
To launch the application, run
java -jar ChatTor-0.0.1-SNAPSHOT.jar config
from the top level directory of this repository. Currently, the keystores and keyserver_list are not packaged into the distribution jar.
-
The application will first prompt for a username, the username will be used to retrieve the user's PGP public key therefore its value must be unique such that the following query https://pgp.mit.edu/pks/lookup?op=get&search=jlzhao (where
jlzhao
is the username you provided) returns the public key matches the private key provided in the config file. -
After the client successfully registers with the chat server, it will begin accepting new conversation commands. To start a new conversation, type
/n jlzhao
. This will create a secure connection with the user and set your current conversation to be withjlzhao
. -
Typing any message and hitting enter will send that message to the current chat session.
-
To switch chat sessions, simply type
/n newUsername
. This will switch your conversation to be withnewUsername
and any new messages you type will be sent to that user.