Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
I'm doing my coursework using windows forms (not going to be actually used so storing passwords isn't an issue I'm worried about it) and I can't figure out how to check what a user has said their username+password is against my database which stores all the usernames+passwords to see if they're actually a user or not.

How do I go about doing this?

What I have tried:

I've tried googling solutions but nothing I can find applies to me (not using asp.net etc) or is too complex for me to understand and implement.
Posted
Updated 22-Nov-16 3:42am
Comments
Richard Deeming 22-Nov-16 12:24pm    
"not going to be actually used"

Famous last words! Even the simplest demo will end up being copied and used in a production application.

Better to do it properly from the start:
Secure Password Authentication Explained Simply[^]
Salted Password Hashing - Doing it Right[^]

Have a look at this: Password Storage: How to do it.[^] - it shows some (relatively simple) code which might help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900