From b8064ed58bc808bd21985235bf1eaf8f2a515bc3 Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Sat, 19 Jun 2021 18:22:22 -0400 Subject: [PATCH 1/4] Fix references to `methods` attr --- Doc/library/crypt.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/crypt.rst b/Doc/library/crypt.rst index d25c626a175854..5479eae59a465f 100644 --- a/Doc/library/crypt.rst +++ b/Doc/library/crypt.rst @@ -93,7 +93,7 @@ The :mod:`crypt` module defines the following functions: may be available on all platforms), or a full encrypted password including salt, as returned by this function. If *salt* is not provided, the strongest method will be used (as returned by - :func:`methods`). + :attr:`methods`). Checking a password is usually done by passing the plain-text password as *word* and the full results of a previous :func:`crypt` call, @@ -122,7 +122,7 @@ The :mod:`crypt` module defines the following functions: Return a randomly generated salt of the specified method. If no *method* is given, the strongest method available as returned by - :func:`methods` is used. + :attr:`methods` is used. The return value is a string suitable for passing as the *salt* argument to :func:`crypt`. From 1e6ea520199effe6738422502bcfa6ee7a5f25f4 Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Tue, 22 Jun 2021 10:30:36 -0400 Subject: [PATCH 2/4] Update language referring to `methods` attr. --- Doc/library/crypt.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/crypt.rst b/Doc/library/crypt.rst index 5479eae59a465f..6877f3d8b3191b 100644 --- a/Doc/library/crypt.rst +++ b/Doc/library/crypt.rst @@ -92,8 +92,8 @@ The :mod:`crypt` module defines the following functions: :func:`mksalt`, one of the ``crypt.METHOD_*`` values (though not all may be available on all platforms), or a full encrypted password including salt, as returned by this function. If *salt* is not - provided, the strongest method will be used (as returned by - :attr:`methods`). + provided, the strongest method available in :attr:`methods` will be used. + Checking a password is usually done by passing the plain-text password as *word* and the full results of a previous :func:`crypt` call, @@ -121,8 +121,8 @@ The :mod:`crypt` module defines the following functions: .. function:: mksalt(method=None, *, rounds=None) Return a randomly generated salt of the specified method. If no - *method* is given, the strongest method available as returned by - :attr:`methods` is used. + *method* is given, the strongest method available in :attr:`methods` is + used. The return value is a string suitable for passing as the *salt* argument to :func:`crypt`. From 8b92d3ca097cbdd95efbd423dc1ac69caee12520 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 2 Apr 2022 14:46:58 -0700 Subject: [PATCH 3/4] Update Doc/library/crypt.rst --- Doc/library/crypt.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/Doc/library/crypt.rst b/Doc/library/crypt.rst index 6877f3d8b3191b..a2d26a3c8c5b22 100644 --- a/Doc/library/crypt.rst +++ b/Doc/library/crypt.rst @@ -93,7 +93,6 @@ The :mod:`crypt` module defines the following functions: may be available on all platforms), or a full encrypted password including salt, as returned by this function. If *salt* is not provided, the strongest method available in :attr:`methods` will be used. - Checking a password is usually done by passing the plain-text password as *word* and the full results of a previous :func:`crypt` call, From 81b05b4989eccc3e24ead065e239ff36d25f2f80 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 2 Apr 2022 14:53:43 -0700 Subject: [PATCH 4/4] Update Doc/library/crypt.rst --- Doc/library/crypt.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/crypt.rst b/Doc/library/crypt.rst index 31e812952fa257..3189ece048a26e 100644 --- a/Doc/library/crypt.rst +++ b/Doc/library/crypt.rst @@ -124,7 +124,7 @@ The :mod:`crypt` module defines the following functions: .. function:: mksalt(method=None, *, rounds=None) Return a randomly generated salt of the specified method. If no - *method* is given, the strongest method available in :attr:`methods` is + *method* is given, the strongest method available in :attr:`methods` is used. The return value is a string suitable for passing as the *salt* argument