[Zope-Checkins] SVN: Zope/trunk/utilities/mkzopeinstance.py - Revert to sha1. Andreas said he added SHA256 to AuthEncoding but I can't find it.
Sidnei da Silva
sidnei at enfoldsystems.com
Fri Nov 14 15:26:22 EST 2008
Log message for revision 92941:
- Revert to sha1. Andreas said he added SHA256 to AuthEncoding but I can't find it.
Changed:
U Zope/trunk/utilities/mkzopeinstance.py
-=-
Modified: Zope/trunk/utilities/mkzopeinstance.py
===================================================================
--- Zope/trunk/utilities/mkzopeinstance.py 2008-11-14 19:12:22 UTC (rev 92940)
+++ Zope/trunk/utilities/mkzopeinstance.py 2008-11-14 20:26:21 UTC (rev 92941)
@@ -168,12 +168,12 @@
def write_inituser(fn, user, password):
import binascii
try:
- from hashlib import sha256 as sha
+ from hashlib import sha1 as sha
except:
from sha import new as sha
fp = open(fn, "w")
pw = binascii.b2a_base64(sha(password).digest())[:-1]
- fp.write('%s:{SHA256}%s\n' % (user, pw))
+ fp.write('%s:{SHA}%s\n' % (user, pw))
fp.close()
os.chmod(fn, 0644)
More information about the Zope-Checkins
mailing list