-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Improved replacement functionality for deprecated crypt module #96747
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
Comments
@gstein Sounds good, please could you create a PR to update the docs? |
…pt` deprecation doc (pythonGH-106660) (pythonGH-106660) * Added mention to passlib package as alternative to the deprecated crypt module. (cherry picked from commit ec7b05a) Co-authored-by: Yonatan Bitton <[email protected]>
…ypt` deprecation doc (GH-106660) (GH-106660) (#106697) [3.12] gh-96747: Mention the PyPI `passlib` package in the `crypt` deprecation doc (GH-106660) (GH-106660) * Added mention to passlib package as alternative to the deprecated crypt module. (cherry picked from commit ec7b05a) Co-authored-by: Yonatan Bitton <[email protected]>
The 3.11 & 3.12 docs point to For the rare users who need old For many of these old rarely used in anything modern algorithms even someone offering up a pure python implementation would work just fine for people's intended purpose. |
Uh oh!
There was an error while loading. Please reload this page.
Documentation
The
crypt
module is deprecated for 3.11. At the top of the doc page (https://docs.python.org/3/library/crypt.html), it suggests that maybehashlib
can provide a replacement, or PEP 594. Neither of these were very helpful.What I did find is
passlib
has a functional replacement. Please see: https://passlib.readthedocs.io/en/stable/lib/passlib.hash.md5_crypt.htmlI think this package/module should be recommended in the
crypt
module documentation.Note that
passlib
will use the OScrypt()
function if available, and will default to a pure-python solution based on the (guaranteed) presence of the MD5 hashing library.Linked PRs
passlib
package tocrypt
doc depraction warning (GH-106660) #106660passlib
package in thecrypt
deprecation doc (GH-106660) (GH-106660) #106697The text was updated successfully, but these errors were encountered: