keychain-uses-objects
quadrismegistus 4 years ago
parent 62f59254ad
commit 47a0bcf04f

@ -252,7 +252,7 @@ class Operator(Keymaker):
msg,
to_whom
)
self.log(f'Here is the message I will now encrypt and to send to {to_whom}:\n\n {dict_format(msg_obj.msg,tab = 2)}')
# self.log(f'Here is the message I will now encrypt and to send to {to_whom}:\n\n {dict_format(msg_obj.msg,tab = 2)}')
# encrypting
msg_obj.encrypt()

@ -19,6 +19,10 @@ class TheTelephone(Operator):
def send_and_receive(self,msg_d,**y):
self.log('send and receive got incoming msg:',msg_d)
opp = Operator(pubkey=msg_d['to'])
self.log('got opp:',opp.pubkey.data == msg_d['to'], op.pubkey.data == msg_d['to'])
msg_b=msg_d["msg"]
msg_b64 = b64encode(msg_b)
msg_b64_str = msg_b64.decode()

Loading…
Cancel
Save