added a comment about md5, thanks Osman

This commit is contained in:
mdipierro
2012-07-18 18:32:46 -05:00
parent 1427dc976f
commit 11b5d7d9d0
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-07-18 18:24:53) dev
Version 2.00.0 (2012-07-18 18:32:43) dev
+9 -1
View File
@@ -2628,7 +2628,15 @@ class CRYPT(object):
"""
def __init__(self, key=None, digest_alg='md5', min_length=0, error_message='too short', salt=None):
def __init__(self, key=None, digest_alg='md5', min_length=0,
error_message='too short', salt=None):
"""
important, digest_alg='md5' is not the default hashing algorithm for
web2py. This is only an example of usage of this function.
The actual hash algorithm is determined from the key which is
generated by web2py in tools.py. This defaults to hmac+sha512.
"""
self.key = key
self.digest_alg = digest_alg
self.min_length = min_length