fixed a problem in recent commit when pycrypto is missing, the fix is temporary
This commit is contained in:
1 parent
63ca73d6f0
commit
30f0215dc6
2 files changed
+4
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.6.0-development+timestamp.2013.07.17.07.36.50
|
Version 2.6.0-development+timestamp.2013.07.17.17.18.40
|
||||||
@@ -80,7 +80,10 @@ def compare(a, b):
|
|||||||
|
|
||||||
def md5_hash(text):
|
def md5_hash(text):
|
||||||
""" Generate a md5 hash with the given text """
|
""" Generate a md5 hash with the given text """
|
||||||
|
if hasattr(md5,'new'):
|
||||||
return md5.new(text).hexdigest()
|
return md5.new(text).hexdigest()
|
||||||
|
else:
|
||||||
|
return md5(text).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
def simple_hash(text, key='', salt='', digest_alg='md5'):
|
def simple_hash(text, key='', salt='', digest_alg='md5'):
|
||||||
|
|||||||
Reference in new issue
Block a user