Skip to content

Commit

Permalink
Added mention to passlib package as alternative to depracted crypt
Browse files Browse the repository at this point in the history
  • Loading branch information
bityob committed Jul 12, 2023
1 parent 247f050 commit d102845
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Doc/library/crypt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
The :mod:`crypt` module is deprecated
(see :pep:`PEP 594 <594#crypt>` for details and alternatives).
The :mod:`hashlib` module is a potential replacement for certain use cases.
The :mod:`passlib` package can replace all use cases of this module.

>>> import crypt
>>> crypt.crypt("cleartext", salt="ab")
'ab/GpyA5I.S12'
>>> from passlib.hash import des_crypt
>>> des_crypt.hash("cleartext", salt="ab")
'ab/GpyA5I.S12'

--------------

Expand Down

0 comments on commit d102845

Please sign in to comment.