forked from p15670423/monkey
Remove unused `hash_secret()` from `monkey_island/cc/environment/__init__.py`
This commit is contained in:
parent
edff2c5c08
commit
c848581115
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue