From d2083149ddd5bb7d009afff38b2cc23f87e677fe Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 3 May 2021 20:08:11 +0530 Subject: [PATCH] Convert hashed pwd to string before storing in server_config.json --- monkey/monkey_island/cc/environment/user_creds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/environment/user_creds.py b/monkey/monkey_island/cc/environment/user_creds.py index fac911cdd..1574f6e8e 100644 --- a/monkey/monkey_island/cc/environment/user_creds.py +++ b/monkey/monkey_island/cc/environment/user_creds.py @@ -35,7 +35,7 @@ class UserCreds: if "password" in data_dict: creds.password_hash = bcrypt.hashpw( data_dict["password"].encode("utf-8"), bcrypt.gensalt() - ) + ).decode() return creds @staticmethod