From a42c3cecd3234e42ea6714c584fb05a43f5c1ac2 Mon Sep 17 00:00:00 2001 From: manetta Date: Tue, 27 Sep 2022 18:38:21 +0200 Subject: [PATCH] adding .hexdigest() to store the passwd as a string --- make_user_accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_user_accounts.py b/make_user_accounts.py index 65b0d32..e1e852d 100644 --- a/make_user_accounts.py +++ b/make_user_accounts.py @@ -40,7 +40,7 @@ for username in usernames: userdata['username'] = username userdata['password'] = password # userdata['password_sha1'] = passwd(password) - userdata['password_sha1'] = sha1(password.encode("utf-8")) + userdata['password_sha1'] = sha1(password.encode("utf-8")).hexdigest() userdata['port'] = curport userdata['servername'] = servername users.append(userdata)