diff --git a/README.md b/README.md index 4858751..c662759 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ -# crypt +# Encrypted chat -Encrypted chat \ No newline at end of file +## Usage: +### Server: `./server.py "IP address" "Port" "Key"*`, eg. `./server.py "127.0.0.1" "12345"` +### Client: `./client.py "IP address" "Port" "Key"*`, eg. `./client.py "127.0.0.1" "12345" "ojzqTVTIsuE6nemN9huFlYMNmyTHr9dUu-E5bL8HrTo="` +`*` - Optionally, but make sure that they both use the same key. diff --git a/client.py b/client.py index 22444bc..e7c235b 100755 --- a/client.py +++ b/client.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + from socket import socket, AF_INET, SOCK_STREAM from threading import Thread from time import sleep diff --git a/server.py b/server.py index dbafe3a..1831aa9 100755 --- a/server.py +++ b/server.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + from socket import socket, AF_INET, SOCK_STREAM from threading import Thread from time import sleep