[Zope-Checkins] SVN: Zope/branches/gsoc-python-2.5/utilities/mkzopeinstance.py - using SHA256 for new accounts
Andreas Jung
andreas at andreas-jung.com
Thu Oct 16 01:34:21 EDT 2008
Log message for revision 92268:
- using SHA256 for new accounts
- fixed the auth encoding classifier
Changed:
U Zope/branches/gsoc-python-2.5/utilities/mkzopeinstance.py
-=-
Modified: Zope/branches/gsoc-python-2.5/utilities/mkzopeinstance.py
===================================================================
--- Zope/branches/gsoc-python-2.5/utilities/mkzopeinstance.py 2008-10-15 22:21:16 UTC (rev 92267)
+++ Zope/branches/gsoc-python-2.5/utilities/mkzopeinstance.py 2008-10-16 05:34:15 UTC (rev 92268)
@@ -170,7 +170,7 @@
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)
More information about the Zope-Checkins
mailing list