crypt
crypt — Function to check Unix passwords
This module implements an interface to the crypt(3) routine, which is a one-way hash function based upon a modified DES algorithm; see the Unix man page for further details. Possible uses include allowing Python scripts to accept typed passwords from the user, or attempting to crack Unix passwords with a dictionary.
Notice that the behavior of this module depends on the actual implementation of the crypt(3) routine in the running system. Therefore, any extensions available on the current implementation will also be available on this module.
-
crypt.crypt(word, salt)
-
word will usually be a user’s password as typed at a prompt or in a graphical interface. salt is usually a random two-character string which will be u