diff options
Diffstat (limited to 'passlib/handlers/md5_crypt.py')
-rw-r--r-- | passlib/handlers/md5_crypt.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/passlib/handlers/md5_crypt.py b/passlib/handlers/md5_crypt.py index 6832dcf..ec8c773 100644 --- a/passlib/handlers/md5_crypt.py +++ b/passlib/handlers/md5_crypt.py @@ -237,6 +237,13 @@ class md5_crypt(uh.HasManyBackends, _MD5_Common): 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 salt_size: int + :param salt_size: + Optional number of characters to use when autogenerating new salts. + Defaults to 8, but can be any value between 0 and 8. + (This is mainly needed when generating Cisco-compatible hashes, + which require ``salt_size=4``). + :type relaxed: bool :param relaxed: By default, providing an invalid value for one of the other |