Python3 is removing crypt.crypt and not replacing it with anything ¯\_(ツ)_/¯ (eighty-twenty news)
Python 3.13 will, for inscrutable reasons, remove the crypt module from
the standard library. The excuses given in PEP
0594 boil down to “here are some
good reasons why new code shouldn’t use this module.” What about existing
code? Ah well.
So anyway, for those of us who need some way of generating $6$ SHAcrypt
SHA-512 shadow-password-database entries from Python, stick the following
module into your codebase (you can also download it, shacrypt512.py) and replace code like
crypt.crypt(password, ...
Read more at eighty-twenty.org