forked from p34709852/monkey
Refactor a couple of imports into a shorter import statement
This commit is contained in:
parent
3b5dd6ac3e
commit
ddff2f0aa4
|
@ -11,7 +11,11 @@ from monkey_island.cc.server_utils.encryption.encryptors.password_based_bytes_en
|
|||
InvalidCredentialsError,
|
||||
InvalidCiphertextError,
|
||||
)
|
||||
from .data_store_encryptor import initialize_datastore_encryptor, get_datastore_encryptor
|
||||
from .data_store_encryptor import (
|
||||
initialize_datastore_encryptor,
|
||||
get_datastore_encryptor,
|
||||
remove_old_datastore_key,
|
||||
)
|
||||
from .dict_encryption.dict_encryptor import (
|
||||
SensitiveField,
|
||||
encrypt_dict,
|
||||
|
|
|
@ -3,8 +3,9 @@ from typing import Union
|
|||
|
||||
from Crypto import Random # noqa: DUO133 # nosec: B413
|
||||
|
||||
from monkey_island.cc.server_utils.encryption import IEncryptor, KeyBasedEncryptor
|
||||
from monkey_island.cc.server_utils.encryption.encryptors.password_based_bytes_encryption import (
|
||||
from monkey_island.cc.server_utils.encryption import (
|
||||
IEncryptor,
|
||||
KeyBasedEncryptor,
|
||||
PasswordBasedBytesEncryptor,
|
||||
)
|
||||
from monkey_island.cc.server_utils.file_utils import open_new_securely_permissioned_file
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from monkey_island.cc.server_utils.encryption import (
|
||||
get_datastore_encryptor,
|
||||
initialize_datastore_encryptor,
|
||||
remove_old_datastore_key,
|
||||
)
|
||||
from monkey_island.cc.server_utils.encryption.data_store_encryptor import remove_old_datastore_key
|
||||
|
||||
|
||||
class AuthenticationService:
|
||||
|
|
Loading…
Reference in New Issue