Updated client/client.py
This commit is contained in:
parent
d8175e3b5e
commit
96c9bb4221
|
|
@ -60,7 +60,12 @@ class Client:
|
||||||
if last_try == r.json():
|
if last_try == r.json():
|
||||||
continue
|
continue
|
||||||
last_try = r.json()
|
last_try = r.json()
|
||||||
os.system("clear")
|
# For windows clear command its cls
|
||||||
|
# For linux clear command its clear
|
||||||
|
if OS == "Linux":
|
||||||
|
os.system("clear")
|
||||||
|
else:
|
||||||
|
os.system("cls")
|
||||||
if len(last_try['status']) > 0:
|
if len(last_try['status']) > 0:
|
||||||
i = 0
|
i = 0
|
||||||
for msg in last_try["status"]:
|
for msg in last_try["status"]:
|
||||||
|
|
@ -84,8 +89,6 @@ class Client:
|
||||||
self.symetric_key = rsa.decrypt(message, self.privkey)
|
self.symetric_key = rsa.decrypt(message, self.privkey)
|
||||||
self.fernet = Fernet(self.symetric_key)
|
self.fernet = Fernet(self.symetric_key)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _remove_keys(self) -> None:
|
def _remove_keys(self) -> None:
|
||||||
os.remove("private.pem")
|
os.remove("private.pem")
|
||||||
os.remove("public.pem")
|
os.remove("public.pem")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user