From c848581115bbf483b07a69458e24e080bb042ea7 Mon Sep 17 00:00:00 2001 From: Shreya Date: Wed, 5 May 2021 19:25:34 +0530 Subject: [PATCH] Remove unused `hash_secret()` from `monkey_island/cc/environment/__init__.py` --- monkey/monkey_island/cc/environment/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/monkey/monkey_island/cc/environment/__init__.py b/monkey/monkey_island/cc/environment/__init__.py index 2a3da5ad0..13d570160 100644 --- a/monkey/monkey_island/cc/environment/__init__.py +++ b/monkey/monkey_island/cc/environment/__init__.py @@ -1,4 +1,3 @@ -import hashlib import logging import os from abc import ABCMeta, abstractmethod @@ -106,12 +105,6 @@ class Environment(object, metaclass=ABCMeta): def get_auth_expiration_time(self): return self._AUTH_EXPIRATION_TIME - @staticmethod - def hash_secret(secret): - hash_obj = hashlib.sha3_512() - hash_obj.update(secret.encode("utf-8")) - return hash_obj.hexdigest() - def get_deployment(self) -> str: deployment = "unknown" if self._config and self._config.deployment: