-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
Description
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
gpshead