Improve PEP8 gluon/utils.py

This commit is contained in:
Richard Vézina
2015-03-31 14:05:34 -04:00
parent f9c755bc18
commit bb64bb2b2e

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