From 7544ff8c634727ee64b003485905ce43b44df155 Mon Sep 17 00:00:00 2001 From: mirai Date: Thu, 1 Dec 2022 11:37:05 +0300 Subject: [PATCH] Add readme --- README.MD | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 README.MD diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..f025850 --- /dev/null +++ b/README.MD @@ -0,0 +1,89 @@ +``` + ██████╗███╗ ███╗██████╗ ██████╗██╗ ██╗ █████╗ ████████╗ +██╔════╝████╗ ████║██╔══██╗██╔════╝██║ ██║██╔══██╗╚══██╔══╝ +██║ ██╔████╔██║██║ ██║██║ ███████║███████║ ██║ +██║ ██║╚██╔╝██║██║ ██║██║ ██╔══██║██╔══██║ ██║ +╚██████╗██║ ╚═╝ ██║██████╔╝╚██████╗██║ ██║██║ ██║ ██║ + ╚═════╝╚═╝ ╚═╝╚═════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ +``` + +![Alt Text](example.gif) + +# Server run + +## Linux + +For linux its required to have python3.10 + +``` +chmod +x run_server.sh +``` + +``` +./run_server.sh +``` + +## Windows + +``` +python -m venv venv +``` + +``` +venv/scripts/Activate +``` + +``` +pip install -r reqs.txt +``` + +``` +sanic server.app -H 0.0.0.0 -p +``` + +# Client run + +## Linux + +For linux its required to have python3.10 + +``` +chmod +x run_client.sh +``` +``` +./run_client.sh +``` + +## Windows + +``` +python -m venv venv +``` + +``` +venv/scripts/Activate +``` + +``` +pip install -r reqs.txt +``` + +``` +python client.py +``` + +## How crypting works? + +* Client making priv key +* Server making symmetric key +* Client sending public key to server +* Server crypting symmetric key and sending to client +* Client encrypting private key +* And than communicate with server via +* symmetric key + +## To do + +* interface for choosing server in client +* double password user verification +* white list