Merge pull request #888 from BuhtigithuB/fix/pep8-utils-py

Improve PEP8 gluon/utils.py
This commit is contained in:
mdipierro
2015-03-31 14:45:48 -05:00
+2
View File
@@ -66,6 +66,7 @@ else:
logger = logging.getLogger("web2py")
def AES_new(key, IV=None):
""" Returns an AES cipher object and random IV if None specified """
if IV is None:
@@ -88,6 +89,7 @@ def md5_hash(text):
""" Generates a md5 hash with the given text """
return md5(text).hexdigest()
def simple_hash(text, key='', salt='', digest_alg='md5'):
"""
Generates hash with the given text using the specified