Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.9] crypt docs: Fix references to methods attr (GH-26806) #32325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Doc/library/crypt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ 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
:func:`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,
Expand Down Expand Up @@ -125,8 +124,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
:func:`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`.
Expand Down