-
Make sure the following files are available in our working folder:
- Key files for server:
- Server Public Key
- Server Private Key
- ChatConf.conf
- Key files for client:
- Server Public Key
- ChatConf.conf
- Key files for server:
-
Make sure pyDH is installed on both the machines
To install pyDH, simply
pip install pyDH
For details please refer:https://github.com/amiralis/pyDH
- Creating username and passwords
To register a new user run createPasswd.py present in server folder
python createPasswd <newusername> <password>
python chatServer.py
Initializes the server on port and ip mentioned in the config
python chatClient.py
Initializes the client and connect to server port and ip mentioned in the config
list
Gives the list of active users
send <username> <message>
Sends message to the username specified
logout
Logouts the client