diff --git a/monkey/infection_monkey/utils/random_password_generator.py b/monkey/infection_monkey/utils/random_password_generator.py index d205a9a01..273343c22 100644 --- a/monkey/infection_monkey/utils/random_password_generator.py +++ b/monkey/infection_monkey/utils/random_password_generator.py @@ -1,6 +1,8 @@ import secrets +SECRET_BYTE_LENGTH = 32 -def get_random_password(length: int = 12) -> str: + +def get_random_password(length: int = SECRET_BYTE_LENGTH) -> str: password = secrets.token_urlsafe(length) return password