mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-03 23:15:33 +00:00
komrade update!
This commit is contained in:
parent
d2662f94b1
commit
954eeaa7c2
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user