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-13 15:51:32 +01:00
parent b104d0a5bb
commit 88b2612ea9

View File

@ -70,12 +70,11 @@ class KomradeSymmetricKeyWithPassphrase(KomradeSymmetricKey):
def hash(self,x): return self.crypt_keys.hash(x)
def __init__(self,passphrase=DEBUG_DEFAULT_PASSPHRASE, why=WHY_MSG):
# if not passphrase:
# # raise KomradeException
# self.passphrase=getpass(why)
# else:
# self.passphrase=passphrase
self.passphrase=getpass(why)
if not passphrase:
# raise KomradeException
self.passphrase=getpass(why)
else:
self.passphrase=passphrase
# if passphrase: self.passphrase=passphrase
@property