Python Forum
Hashing Passwords (HELP) - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Hashing Passwords (HELP) (/thread-27112.html)



Hashing Passwords (HELP) - MianDoesCoding - May-26-2020

Hey guys so what i'm new to python and my brother challenged me with this.
Make a thing where it asks you 'sign up or login?'
if you pick sign up it asks for your username and password and when you put it in,
it saves it to a text document but it also hashes it.
then when the user trys to login, it will ask for thier name/pass. if the name/pass dont match or dont exist. it will say 'sorry thats not in our system :) please try again!' but if it is, its gonna hash the code and check it against the hashed stuff already so it works

This might be seeming a bit jumbled but basically i wanna know how to do this.

Ask signup or login ---> if signup. Ask for details and hash + save to a text file. ---> if login. hash what they put and check it against the system if its not existant or doesnt work, ask to retry. ---> after that if the stuff is good. allow acsess.

i know how to do some of it but im really stuck on how i would do this.

Please help :) Mian


RE: Hashing Passwords (HELP) - buran - May-26-2020

Post what have you tried. Ask specific questions. If you get traceback - post the full traceback you get.
Use proper tags when post code, traceback, output, etc.
See BBcode help for more info.


RE: Hashing Passwords (HELP) - MianDoesCoding - May-26-2020

(May-26-2020, 02:22 PM)buran Wrote: Post what have you tried. Ask specific questions. If you get traceback - post the full traceback you get.
Use proper tags when post code, traceback, output, etc.
See BBcode help for more info.

no like, i dont know much at all and idk how or where to start ;(


RE: Hashing Passwords (HELP) - pyzyx3qwerty - May-26-2020

See Homework and No Effort Questions


RE: Hashing Passwords (HELP) - buran - May-26-2020

(May-26-2020, 02:24 PM)MianDoesCoding Wrote: i dont know much at all and idk how or where to start
You don't know fundamentals yet in the next thread you want to develop rather complex applications?
I would suggest choose a tutorial in a form you prefer (book/online course/tutorial, video tutorial etc.) and start from basics.
Python official documentation and tutorial is a good start
You can check our list of free python resources.