Hey I think that is a good built-in way to protect your passwords, but then I don't know if a text file is the best way to store them. I think (in my opinion) I consider using a database to store tha info.
There is a way to make the entry appears as *. txtPass=Entry(root,width=25,show="*") The show attribute accomplish what you want Regards Alberto >From: Øyvind <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: tutor@python.org >Subject: [Tutor] Password >Date: Wed, 18 May 2005 14:46:43 +0200 (CEST) > >Hello. > >I am trying to make a loginbox for a program, and need to make a somewhat >safe passwordroutine. > >Will this work? > >import md5 >h = md5.new() >h.update(password) >h.hexdigest() > >The user enters a password first. These lines will create a string: >'12c0faae657b3d068c0f19b71f5b43bc' This string will be stored in the file >settings.txt > >Then, I will do the same where the password is entered in a GUI-box. Then >I will do the same, and compare. If file.readline == h.hexdigest() the >user will be accepted. Is this a good way to do this? > >And a second question. I have made a tkinter box with two entry-fields. Is >there a way to make the letters in the second entrybox appear as **** as >the user types his password? Is there some built in function in the >Tkinter Entry that does this? > >Thanks in advance > >-- >This email has been scanned for viruses & spam by Decna as - www.decna.no >Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no > >_______________________________________________ >Tutor maillist - Tutor@python.org >http://mail.python.org/mailman/listinfo/tutor Gaucho _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor