added a comment about md5, thanks Osman
This commit is contained in:
@@ -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
@@ -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.key = key
|
||||||
self.digest_alg = digest_alg
|
self.digest_alg = digest_alg
|
||||||
self.min_length = min_length
|
self.min_length = min_length
|
||||||
|
|||||||
Reference in New Issue
Block a user