mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-16 00:12:48 +00:00
finally! abolishing private key property
This commit is contained in:
parent
36eda13feb
commit
c91824555b
@ -257,16 +257,24 @@ def init_operators():
|
|||||||
if key in phone_decr_keys:
|
if key in phone_decr_keys:
|
||||||
STORE_IN_APP[TELEPHONE_NAME][key]=phone_decr_keys[key]
|
STORE_IN_APP[TELEPHONE_NAME][key]=phone_decr_keys[key]
|
||||||
|
|
||||||
|
STORE_IN_APP = package_for_transmission({
|
||||||
|
OPERATOR_NAME:package_for_transmission(STORE_IN_APP[OPERATOR_NAME]),
|
||||||
|
TELEPHONE_NAME:package_for_transmission(STORE_IN_APP[TELEPHONE_NAME]))
|
||||||
|
})
|
||||||
|
|
||||||
|
THIRD_PARTY_DICT = package_for_transmission({
|
||||||
|
OPERATOR_NAME:package_for_transmission(THIRD_PARTY_DICT[OPERATOR_NAME]),
|
||||||
|
TELEPHONE_NAME:package_for_transmission(THIRD_PARTY_DICT[TELEPHONE_NAME]))
|
||||||
|
})
|
||||||
|
|
||||||
print('store in app =',STORE_IN_APP)
|
print('store in app =',STORE_IN_APP)
|
||||||
print('store in web =',THIRD_PARTY_DICT)
|
print('store in web =',THIRD_PARTY_DICT)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
import pickle
|
|
||||||
with open(PATH_BUILTIN_KEYCHAIN,'wb') as of:
|
with open(PATH_BUILTIN_KEYCHAIN,'wb') as of:
|
||||||
pickle.dump(STORE_IN_APP,of)
|
of.write(STORE_IN_APP)
|
||||||
with open(PATH_OPERATOR_WEB_KEYS_FILE,'wb') as of:
|
with open(PATH_OPERATOR_WEB_KEYS_FILE,'wb') as of:
|
||||||
pickle.dump(THIRD_PARTY_DICT,of)
|
of.write(THIRD_PARTY_DICT)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user