From b3e1b829bc0e109b705feb336a43ce0ab9aef68a Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Mon, 7 Sep 2020 07:18:05 +0100 Subject: [PATCH] finally! abolishing private key property --- komrade/backend/the_operator.py | 14 +++++++------- komrade/backend/the_telephone.py | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/komrade/backend/the_operator.py b/komrade/backend/the_operator.py index 7863394..123e5db 100644 --- a/komrade/backend/the_operator.py +++ b/komrade/backend/the_operator.py @@ -170,13 +170,13 @@ def init_operators(): print('TELEPHONE_KEYCHAIN =',phone_decr_keys) # stop - # stringify - for k,v in phone_decr_keys.items(): - v_s = b64encode(v) #.decode('utf-8') - phone_decr_keys[k]=v_s - for k,v in op_decr_keys.items(): - v_s = b64encode(v) #.decode('utf-8') - op_decr_keys[k]=v_s + # # stringify + # for k,v in phone_decr_keys.items(): + # v_s = b64encode(v) #.decode('utf-8') + # phone_decr_keys[k]=v_s + # for k,v in op_decr_keys.items(): + # v_s = b64encode(v) #.decode('utf-8') + # op_decr_keys[k]=v_s print('\n'*5) print('OPERATOR_KEYCHAIN =',op_decr_keys) diff --git a/komrade/backend/the_telephone.py b/komrade/backend/the_telephone.py index 965b0fd..c435d01 100644 --- a/komrade/backend/the_telephone.py +++ b/komrade/backend/the_telephone.py @@ -54,9 +54,10 @@ class TheTelephone(Operator): # 0) Unencrypted. do not use except for very specific minimal reasons! # exchange half-complete pieces of info, both of which necessary for other + unencr_header = OPERATOR_KEYCHAIN['privkey_decr'] + BSEP2 + TELEPHONE_NAME['pubkey_decr'] - # self.log('unencr_header',unencr_header) + self.log('unencr_header',unencr_header) # ewrwerewrwerw # 1) only overall encryption layer E2EE Telephone -> Operator: