md5 passwords

Carey Evans c.evans at clear.net.nz
Sat Mar 17 07:57:38 CET 2001


Timothy Grant <tjg at exceptionalminds.com> writes:

> Can anyone explain to me how to use the md5 module to generate
> passwords for the shadow password file?
> 
> I would like to be able to be able to os.system('useradd -p
> md5/crypt username')

Have a look at Michal Wallace's `md5crypt.py' module, which should do
this for you:

    http://www.sabren.net/code/python/crypt/

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/

	    "Quiet, you'll miss the humorous conclusion."



More information about the Python-list mailing list