Woops, Everything you need to know regarding C#: https://docs.microsoft.com/en-us/dotnet/csharp/csharp
Can we all stop being so mean for once? The only way for people to learn is to TEACH them. @gigawert, look up hashing functions for your language of choice. Make sure the hashing is done on the server, not the client. Below is the general flow of how storing and fetching passwords should be like: User enters ID and Password ID and Password are sent to the server, preferably over an encrypted connection, such as HTTPS Password is hashed using your favorite language's appropriate hashing function (look them up, there are several, some are more secure than others). Make sure you use the same hash function you used to store the password in the first place. Use the ID to fetch the related stored hash (SELECT hashedPassword FROM users WHERE id = '$user') If the hashes match, then return a successful login session ID (languages like php have their own sessionID system, if your language doesn't have one, either look for a session library or make your own that generates random session strings, DON'T RETURN THE USERNAME as a hacker can easily fake logging in as someone else), otherwise reject and report nondescriptive error (Invalid login, please try again)