|
|
@ -19,7 +19,7 @@ class InterfaceClient(Interface): |
|
|
|
self.entree.set("HELLO") |
|
|
|
self.send() |
|
|
|
self.sendHelloButton['state'] = "disabled" |
|
|
|
self.keyExchangeButton['state'] = "enable" |
|
|
|
self.keyExchangeButton['state'] = "normal" |
|
|
|
|
|
|
|
def keyExchange(self): |
|
|
|
"""attend la clé publique du serveur |
|
|
@ -42,8 +42,8 @@ class InterfaceClient(Interface): |
|
|
|
if self.message.get() == "Finished": |
|
|
|
print("Connection sécurisée établie ☺") |
|
|
|
self.keyExchangeButton['state'] = "disabled" |
|
|
|
self.sendButton['state'] = "enabled" |
|
|
|
self.recvButton['state'] = "enabled" |
|
|
|
self.sendButton['state'] = "normal" |
|
|
|
self.recvButton['state'] = "normal" |
|
|
|
|
|
|
|
def chiffre_RSA(self, msg, cle): |
|
|
|
"""chiffre un message avec une clé publique""" |
|
|
|