From c487a278fefa390dddd2f9e089dbe35ade29a7c9 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Mon, 7 Jun 2021 11:30:10 +0300 Subject: [PATCH] Fixed a type-hint for a config decryption method --- monkey/monkey_island/cc/services/utils/config_encryption.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/services/utils/config_encryption.py b/monkey/monkey_island/cc/services/utils/config_encryption.py index 9c2858db3..45a31c5b1 100644 --- a/monkey/monkey_island/cc/services/utils/config_encryption.py +++ b/monkey/monkey_island/cc/services/utils/config_encryption.py @@ -2,7 +2,7 @@ import base64 import io import json import logging -from typing import Dict, Union +from typing import Dict import pyAesCrypt @@ -27,7 +27,7 @@ def encrypt_config(config: Dict, password: str) -> str: return ciphertext_b64.decode() -def decrypt_config(cyphertext: Union[str, dict], password: str) -> Dict: +def decrypt_config(cyphertext: str, password: str) -> Dict: if not password: raise NoCredentialsError