This commit is contained in:
parent
c682fe1e2a
commit
1616150c2f
@ -92,7 +92,7 @@ class NetWrapper:
|
|||||||
def keyExchange(self) -> None:
|
def keyExchange(self) -> None:
|
||||||
dh = pyDH.DiffieHellman()
|
dh = pyDH.DiffieHellman()
|
||||||
mypubkey = self.ecryptRSAMessage(str(dh.gen_public_key()))
|
mypubkey = self.ecryptRSAMessage(str(dh.gen_public_key()))
|
||||||
header, headersignature = self.signRSAHeader("DH")
|
header, headersignature = self.signRSAHeader("DH",{})
|
||||||
jsonmsg = json.dumps(
|
jsonmsg = json.dumps(
|
||||||
{'header': b64encode(header).decode('UTF-8'), 'headersignature': b64encode(headersignature).decode('UTF-8'),
|
{'header': b64encode(header).decode('UTF-8'), 'headersignature': b64encode(headersignature).decode('UTF-8'),
|
||||||
'message': mypubkey}).encode('UTF-8')
|
'message': mypubkey}).encode('UTF-8')
|
||||||
|
Loading…
Reference in New Issue
Block a user