FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-143700: Document secrets.DEFAULT_ENTROPY by kovan · Pull Request #144447 · python/cpython · GitHub

Repository navigation

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 8 additions & 0 deletions Doc/library/secrets.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ The :mod:`secrets` module provides functions for generating secure
tokens, suitable for applications such as password resets,
hard-to-guess URLs, and similar.

.. data:: DEFAULT_ENTROPY

The default number of bytes of randomness used by the ``token_*``
functions when *nbytes* is not specified. This is an opaque value
that may change at any time, including during maintenance releases.
Users who need a specific amount of entropy should explicitly pass
the *nbytes* argument.

.. function:: token_bytes([nbytes=None])

Return a random byte string containing *nbytes* number of bytes.
Expand Down
Loading

Back | FazBrowse Home | New Git URL