keychain-uses-objects
quadrismegistus 4 years ago
parent 125b737118
commit 8604cb7398

@ -144,9 +144,9 @@ def check_phonelines():
def test_phonelines():
from komrade.backend.the_telephone import TheTelephone
from komrade.backend.the_operator import TheOperator
from getpass import getpass
phone = TheTelephone()
op = TheOperator()
op = TheOperator(passphrase=getpass())
print('phone',dict_format(phone._keychain))
print('op',dict_format(op._keychain))

@ -23,13 +23,13 @@ class TheOperator(Operator):
return TELEPHONE
def __init__(self, name = OPERATOR_NAME, passphrase='acc'):
def __init__(self, name = OPERATOR_NAME, passphrase=DEBUG_DEFAULT_PASSPHRASE):
"""
Boot up the operator. Requires knowing or setting a password of memory.
"""
super().__init__(
name,
passphrase,
passphrase
path_crypt_keys=PATH_CRYPT_OP_KEYS,
path_crypt_data=PATH_CRYPT_OP_DATA
)

Loading…
Cancel
Save