adding .hexdigest() to store the passwd as a string

master
manetta 2 years ago
parent 273c122eea
commit 1dd9350ee1

@ -29,7 +29,7 @@ password = getpass(f"New password: ")
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()
with open("jupyter_notebook_config.temp.py", "w") as f:
print(nbconfig.render(**userdata), file=f)

Loading…
Cancel
Save