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