2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-03 23:15:33 +00:00

komrade update!

This commit is contained in:
quadrismegistus 2020-09-17 15:58:16 +01:00
parent d2662f94b1
commit 954eeaa7c2

View File

@ -48,6 +48,7 @@ class Crypt(Logger):
self.secret = b'' self.secret = b''
self.encrypt_values = encrypt_values self.encrypt_values = encrypt_values
if self.secret and encrypt_values and (not encryptor_func or not decryptor_func): if self.secret and encrypt_values and (not encryptor_func or not decryptor_func):
from komrade.backend.keymaker import KomradeSymmetricKeyWithPassphrase
self.key = KomradeSymmetricKeyWithPassphrase( self.key = KomradeSymmetricKeyWithPassphrase(
passphrase=self.secret passphrase=self.secret
) )