Generating random passwords ... for a csv file with user details

Klaus Alexander Seistrup klaus at
Sun May 28 10:25:19 CEST 2006

Kanthi skrev:

> I have a csv file which in taken as the input file for adding 
> users in my linux mail server with the format
> userid,fullname,passwword,dateofbith
> Now I have to write a script to generate random password in the
> password field for each user. A simple algorithm is sufficient
> for passwords


>>> import sha
>>> sha.sha('userid,fullname,passwword,dateofbith').digest().encode('base64')[:10]



Klaus Alexander Seistrup
SubZeroNet, Copenhagen, Denmark

More information about the Python-list mailing list