Updated to use seperate encryption module
This commit is contained in:
parent
46328842a7
commit
e93b723587
@ -172,11 +172,11 @@ def main():
|
||||
# Encrypt
|
||||
if not arguments.minimal:
|
||||
with contextlib.suppress(ImportError):
|
||||
import encryption
|
||||
import FediBotEncryption
|
||||
ans = _input("Do you want to encrypt your credentials? (y/n)", default("encrypt"))
|
||||
if ans.upper() in ("Y", "YES"):
|
||||
encrypt = True
|
||||
salt, settings_server = encryption.settings_server_encrypt(settings_server, arguments.keyfile)
|
||||
salt, settings_server = FediBotEncryption.settings_server_encrypt(settings_server, arguments.keyfile)
|
||||
|
||||
settings_encrypt = OrderedDict([
|
||||
("encrypt", encrypt),
|
||||
|
Loading…
Reference in New Issue
Block a user