I need a function that will create and store usernames and passwords for different students. Their programme should ask the user for their name and age and a username should be created, consisted of their name and age eg. Jack16. They then can make up their own password which then will be stored in an external file using pickle maybe. The programme should then be able to check if the username and password is valid from the external list in a log in section. If they are valid they should be allowed in. I'm sort of stuck on this and would appreciate any help.
Jack_30
0
Newbie Poster
Recommended Answers
Jump to PostWhen this question comes up, I reply with "never store passwords in a database." You can store the names but never the passwords.
So you may wonder how to verify that password? We store the one way encrypted password and then encrypt the offered password and then compare.
This …
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
rproffitt
2,580
"Nothing to see here."
Moderator
rubberman
commented:
This is the approach I used when developing FACTORYworks back in the 1990's. Doubly encrypted passwords are pretty hard to crack.
+14
benanamen
69
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.