Deprecated crypt.crypt Replacement

10 views
Skip to first unread message

Robert Simmons

unread,
May 26, 2024, 6:11:44 PMMay 26
to passlib-users
The crypt module in the standard Python library is currently deprecated and in Python 3.13 will be removed. According to the Python documentation, passlib should have a replacement for the following:

crypt.crypt(secret, salt='$6$')

The following attempt, unfortunately, generates a different hash as above, when run side by side:

from passlib.hash import sha512_crypt

sha512_crypt.using(salt='').hash(secret)

Reply all
Reply to author
Forward
0 new messages