Skip to content

Improved replacement functionality for deprecated crypt module #96747

@gstein

Description

@gstein

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 maybe hashlib 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.html

I think this package/module should be recommended in the crypt module documentation.

Note that passlib will use the OS crypt() function if available, and will default to a pure-python solution based on the (guaranteed) presence of the MD5 hashing library.

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc direasy

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions