summaryrefslogtreecommitdiff
path: root/passlib/handlers/md5_crypt.py
diff options
context:
space:
mode:
Diffstat (limited to 'passlib/handlers/md5_crypt.py')
-rw-r--r--passlib/handlers/md5_crypt.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/passlib/handlers/md5_crypt.py b/passlib/handlers/md5_crypt.py
index cd413d6..6832dcf 100644
--- a/passlib/handlers/md5_crypt.py
+++ b/passlib/handlers/md5_crypt.py
@@ -236,6 +236,16 @@ class md5_crypt(uh.HasManyBackends, _MD5_Common):
Optional salt string.
If not specified, one will be autogenerated (this is recommended).
If specified, it must be 0-8 characters, drawn from the regexp range ``[./0-9A-Za-z]``.
+
+ :type relaxed: bool
+ :param relaxed:
+ By default, providing an invalid value for one of the other
+ keywords will result in a :exc:`ValueError`. If ``relaxed=True``,
+ and the error can be corrected, a :exc:`~passlib.exc.PasslibHashWarning`
+ will be issued instead. Correctable errors include
+ ``salt`` strings that are too long.
+
+ .. versionadded:: 1.6
"""
#=========================================================
# class attrs
@@ -285,6 +295,16 @@ class apr_md5_crypt(_MD5_Common):
Optional salt string.
If not specified, one will be autogenerated (this is recommended).
If specified, it must be 0-8 characters, drawn from the regexp range ``[./0-9A-Za-z]``.
+
+ :type relaxed: bool
+ :param relaxed:
+ By default, providing an invalid value for one of the other
+ keywords will result in a :exc:`ValueError`. If ``relaxed=True``,
+ and the error can be corrected, a :exc:`~passlib.exc.PasslibHashWarning`
+ will be issued instead. Correctable errors include
+ ``salt`` strings that are too long.
+
+ .. versionadded:: 1.6
"""
#=========================================================
# class attrs