2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-05 21:20:51 +00:00
This commit is contained in:
quadrismegistus 2020-09-14 22:19:19 +01:00
parent 7dc3d4c30d
commit 9881776d86
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ class Message(Logger):
self.msg = self.msg_d['msg'] = decr_msg_b = SMessage(
self.to_whom.privkey.data,
self.from_pubkey
b64dec(self.from_pubkey)
).unwrap(self.msg)
# self.log('Am I decrypted?',self)
@ -156,7 +156,7 @@ class Message(Logger):
# self.log('to pubkey:',self.to_pubkey)
msg_encr = SMessage(
self.from_whom.privkey.data,
self.to_pubkey
b64dec(self.to_pubkey)
).wrap(msg_b)
self.msg_decr = self.msg

View File

@ -352,7 +352,7 @@ from_komrade = {from_komrade}
}
msg_from_op = {
'to':deliver_to,
'from':self.pubkey_b64,
'from':self.pubkey.data_b64,
'msg':enclosed_msg
}
out_msg = Message(msg_from_op)