logfunc('Enter a memorable password to encrypt your private key with:')
passphrase=getpass(f'\n@{self.name}: ')
passphrase=getpass(f'\nKomrade @{self.name}: ')
clear_screen()
## 4) Get hashed password
passhash=hasher(passphrase)
logfunc(f'''I have replaced your password with a disguised, hashed version\nusing a salted SHA-256 algorithm from python's hashlib:\n\n\t{make_key_discreet_str(passhash)}''')
logfunc(f'''I have replaced your password with a disguised, hashed version\nusing a salted SHA-256 algorithm from python's hashlib:\n\n\t{make_key_discreet_str(passhash)}''',pause=True)
logfunc(f"Store your private key on your device hardware ONLY\nas it was encrypted by your password-generated key:\n\n[Encrypted Private Key]\n({make_key_discreet_str(privkey_encr_obj.data_b64)})")
logfunc(f"Store your private key on your device hardware ONLY\nas it was encrypted by your password-generated key:\n\n[Encrypted Private Key]\n({make_key_discreet_str(privkey_encr_obj.data_b64)})",pause=True)
logfunc('Store your public key both on your device hardware\nas well as register it with Komrade @Operator on the remote server:\n\n',dict_format(data,tab=2))
logfunc('Store your public key both on your device hardware\nas well as register it with Komrade @Operator on the remote server:\n\n',dict_format(data,tab=2),pause=True)
# ring operator
# call from phone since I don't have pubkey on record on Op yet
@ -168,11 +168,11 @@ class KomradeX(Caller):
route='register_new_user'
)
ifnotresp_msg_d.get('success'):
logfunc(f'Registration failed. Message from operator was:\n\n{dict_format(resp_msg_d)}')
logfunc(f'Registration failed. Message from operator was:\n\n{dict_format(resp_msg_d)}',pause=True)
return
# otherwise, save things on our end
logfunc(f'Registration successful. Message from operator was:\n\n{dict_format(resp_msg_d)}')
logfunc(f'Registration successful. Message from operator was:\n\n{dict_format(resp_msg_d)}',pause=True)