diff --git a/DiffieHellman.py b/DiffieHellman.py index f98d043..450a1f6 100755 --- a/DiffieHellman.py +++ b/DiffieHellman.py @@ -202,8 +202,8 @@ def showResults(self): if(a.getKey() == b.getKey()): print("Shared keys match.") - print("Key:", hexlify(a.key)) + print("Key:", hexlify(a.getKey())) else: print("Shared secrets didn't match!") - print("Shared secret A: ", a.genSecret(b.publicKey)) - print("Shared secret B: ", b.genSecret(a.publicKey)) + print("Shared secret A: ", hexlify(a.getKey())) + print("Shared secret B: ", hexlify(b.getKey()))