Replacing the crypt module in Windows

Paul Rubin http
Fri Aug 8 13:52:12 EDT 2003


Jorge Godoy <godoy at metalab.unc.edu> writes:
> What do you use to replace the crypt module in Windows? It's available
> for POSIX systems only. I need to check some passwords to grant access
> to a system we're writing and the first choice on unices was crypt. Is
> there something that can be used on both systems and use a random seed
> to generate the password?

If you don't need to be compatible with Unix passwords it's best not
to use that function.  Instead, use a random salt and the md5 or sha
module.  Better yet, use the hmac module, with a random salt and with
a secret key, to give some protection against dictionary searches.




More information about the Python-list mailing list