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