Commit 729d6cb5 authored by Andreas Jung's avatar Andreas Jung

- using SHA256 for new accounts

- fixed the auth encoding classifier 
parent 0cb0cbaf
......@@ -170,7 +170,7 @@ def write_inituser(fn, user, password):
import hashlib
fp = open(fn, "w")
pw = binascii.b2a_base64(hashlib.sha256(password).digest())[:-1]
fp.write('%s:{SHA}%s\n' % (user, pw))
fp.write('%s:{SHA256}%s\n' % (user, pw))
fp.close()
os.chmod(fn, 0644)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment