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 21:25:28 +01:00
parent de029d1d23
commit c6cae07c37
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ def create_phonelines():
with open(PATH_SUPER_SECRET_OP_KEY,'wb') as of:
#of.write(pass_encr)
# for now only!!! -->
of.write(op_privkey.data)
of.write(op_privkey.data_b64)
with open(PATH_OPERATOR_WEB_KEYS_FILE,'w') as of:
of.write(op_pubkey.data_b64_s)

View File

@ -75,7 +75,7 @@ class TheOperator(Operator):
# except ThemisError:
# exit('invalid password. operator shutting down.')
if privkey:
self._keychain['privkey']=KomradeAsymmetricPrivateKey(privkey)
self._keychain['privkey']=KomradeAsymmetricPrivateKey(b64dec(privkey))
print(self._keychain['privkey'],'??')
self._keychain = {**self.keychain()}
# self.log('@Operator booted with keychain:',dict_format(self._keychain),'and passphrase',self.passphrase)