Updated to use seperate encryption module

This commit is contained in:
Anon 2023-03-12 17:52:41 -07:00
parent 46328842a7
commit e93b723587

View File

@ -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),