This commit is contained in:
parent
6bf93241f1
commit
772a9e6d2c
@ -66,7 +66,7 @@ class NetWrapper:
|
|||||||
cipherkey = dh.gen_shared_key(serverpubkey).encode('UTF-8')
|
cipherkey = dh.gen_shared_key(serverpubkey).encode('UTF-8')
|
||||||
hasher = SHA512.new()
|
hasher = SHA512.new()
|
||||||
hasher.update(cipherkey)
|
hasher.update(cipherkey)
|
||||||
self.cipherkey = hasher.hexdigest()[:32]
|
self.cipherkey = (hasher.hexdigest()[:32]).encode('UTF-8')
|
||||||
|
|
||||||
def login(self) -> bool:
|
def login(self) -> bool:
|
||||||
b64 = {'source': '', 'type': ''}
|
b64 = {'source': '', 'type': ''}
|
||||||
|
Loading…
Reference in New Issue
Block a user