@@ -29,6 +29,8 @@ this module.
2929Hashing Methods
3030---------------
3131
32+ .. versionadded :: 3.3
33+
3234The :mod: `crypt ` module defines the list of hashing methods (not all methods
3335are available on all platforms):
3436
@@ -37,42 +39,33 @@ are available on all platforms):
3739 A Modular Crypt Format method with 16 character salt and 86 character
3840 hash. This is the strongest method.
3941
40- .. versionadded :: 3.3
41-
4242.. data :: METHOD_SHA256
4343
4444 Another Modular Crypt Format method with 16 character salt and 43
4545 character hash.
4646
47- .. versionadded :: 3.3
48-
4947.. data :: METHOD_MD5
5048
5149 Another Modular Crypt Format method with 8 character salt and 22
5250 character hash.
5351
54- .. versionadded :: 3.3
55-
5652.. data :: METHOD_CRYPT
5753
5854 The traditional method with a 2 character salt and 13 characters of
5955 hash. This is the weakest method.
6056
61- .. versionadded :: 3.3
62-
6357
6458Module Attributes
6559-----------------
6660
61+ .. versionadded :: 3.3
6762
6863.. attribute :: methods
6964
7065 A list of available password hashing algorithms, as
7166 ``crypt.METHOD_* `` objects. This list is sorted from strongest to
7267 weakest, and is guaranteed to have at least ``crypt.METHOD_CRYPT ``.
7368
74- .. versionadded :: 3.3
75-
7669
7770Module Functions
7871----------------
@@ -108,9 +101,8 @@ The :mod:`crypt` module defines the following functions:
108101 different sizes in the *salt *, it is recommended to use the full crypted
109102 password as salt when checking for a password.
110103
111- .. versionchanged :: 3.3
112- Before version 3.3, *salt * must be specified as a string and cannot
113- accept ``crypt.METHOD_* `` values (which don't exist anyway).
104+ .. versionchanged :: 3.3
105+ Accept ``crypt.METHOD_* `` values in addition to strings for *salt *.
114106
115107
116108.. function :: mksalt(method=None)
@@ -124,7 +116,7 @@ The :mod:`crypt` module defines the following functions:
124116 16 random characters from the set ``[./a-zA-Z0-9] ``, suitable for
125117 passing as the *salt * argument to :func: `crypt `.
126118
127- .. versionadded :: 3.3
119+ .. versionadded :: 3.3
128120
129121Examples
130122--------
0 commit comments