Re: [Tutor] reset password program

2011-12-18 Thread Wayne Werner
On Fri, Dec 16, 2011 at 7:17 PM, Robert Sjoblom wrote: > > Some improvements to think about, in order of least secure (easiest) to > most > > secure (hardest). > > > > (1) "my secret password.txt" is a crappy name. Is there a better name? > > I'm going to go with "EULA.txt"; the reasons should be

Re: [Tutor] reset password program

2011-12-16 Thread Robert Sjoblom
> Some improvements to think about, in order of least secure (easiest) to most > secure (hardest). > > (1) "my secret password.txt" is a crappy name. Is there a better name? I'm going to go with "EULA.txt"; the reasons should be obvious. -- best regards, Robert S. ___

Re: [Tutor] reset password program

2011-12-16 Thread Hugo Arts
On Fri, Dec 16, 2011 at 11:49 PM, ADRIAN KELLY wrote: > thanks dave, > just tried writing to file for the first time > > def main(): >  outfile.write('Hello this is a test') >  outfile.close() > main() > > error, globalname outfile is not defined, do i need to import function to > get this working

Re: [Tutor] reset password program

2011-12-16 Thread Steven D'Aprano
ADRIAN KELLY wrote: Hi guys, i created a program that allows users to login using a password that i set at the top of the program. Among other things users are given the option to change their password. My questions is; Is it possible for me to make this new password stick, in other words wh

Re: [Tutor] reset password program

2011-12-16 Thread Sarma Tangirala
> thanks dave, > just tried writing to file for the first time > > def main(): > outfile.write('Hello this is a test') > outfile.close() > main() > > error, globalname outfile is not defined, do i need to import function to get this working? > > Fyi, you should check the python docs. They have a

Re: [Tutor] reset password program

2011-12-16 Thread Emile van Sebille
On 12/16/2011 2:49 PM ADRIAN KELLY said... thanks dave, just tried writing to file for the first time def main(): outfile.write('Hello this is a test') outfile.close() main() *error, globalname outfile is not defined, do i need to import function to get this working?* No, but you do need to i

Re: [Tutor] reset password program

2011-12-16 Thread ADRIAN KELLY
500 > From: d...@davea.name > To: kellyadr...@hotmail.com > CC: tutor@python.org > Subject: Re: [Tutor] reset password program > > On 12/16/2011 05:02 PM, ADRIAN KELLY wrote: > > Hi guys, > > i created a program that allows users to login using a password that i set > >

Re: [Tutor] reset password program

2011-12-16 Thread Dave Angel
On 12/16/2011 05:02 PM, ADRIAN KELLY wrote: Hi guys, i created a program that allows users to login using a password that i set at the top of the program. Among other things users are given the option to change their password. My questions is; Is it possible for me to make this new password s

[Tutor] reset password program

2011-12-16 Thread ADRIAN KELLY
Hi guys, i created a program that allows users to login using a password that i set at the top of the program. Among other things users are given the option to change their password. My questions is; Is it possible for me to make this new password stick, in other words when they shut down