Skip to content
Sign upLog in
← Back to Community

Username and Password Database

Profile icon
Hamburgr

I am currently working on an Account Creation and login form in c# because I am bored, however I have gotten stuck at one part. I have just started the project and I want each person who creates an account to be able to login. The way I want to do this is creating a database, and every time someone creates a new account, their username and password is added to the database (I know this isn't really that secure but this is just for fun). Can anyone help me? and if this isn't possible, do you mind giving me an alternative and how to do it?

Voters
Profile icon
SurendarRaja1
Profile icon
LandofStorie
Profile icon
Hamburgr
Comments
hotnewtop
Profile icon
Coder100

Two ways.
Because this is an example project, consider using System.IO.

Or, read this: https://docs.replit.com/misc/database

Profile icon
johnnyfrancis

wow what in the world is this? Z�\0\0\0\0\0\0\0�\0\0�\0\0\0\0\0\0\[email protected]\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0�\0\0\0�\0� �!�L�!This program cannot be run in DOS mode.

$\0\0\0\0\0\0\0PE\0\0L\0\0\0\0\0\0\0\0\0\0\0\0\0�\0 \0\0\0\0\0\0\0\0\0\0\0>$\0\0\0 \0\0\[email protected]\0\0\0\[email protected]\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0�\0\0\0\0\0\0\0\0\0\[email protected]�\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0�#\0\0K\0\0\0\[email protected]\0\0�\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0H\0\0\0\0\0\0\0\0\0\0\0.text\0\0\0D\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0.rsrc\0\0\0�\0\0\[email protected]\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\[email protected]\0\[email protected]\0\0 \0\0\0\0`\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\[email protected]\0\0B\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 $\0\0\0\0\0\0H\0\0\0\0\0� \0\0<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0(\0\0
*0\0F\0\0\0\0\0(\0\0
r\0\0p(\0\0
(\0\0

r#\0\0p(\0\0
(\0\0
rE\0\0p(\0\0
(\0\0
r[\0\0p(\0\0
(\0\0
*\0\0BSJB\0\0\0\0\0\0 \0\0\0v4.0.30319\0\0\0\0\0l\0\0\0\0\0#~\0\0�\0\0�\0\0\0#Strings\0\0\0\0d\0\0t\0\0\0#US\0�\0\0\0\0\0#GUID\0\0\0�\0\0T\0\0\0#Blob\0\0\0\0\0\0\0\0\0W\0 \0\0\0\0�3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0�\0\0\0\0\0\0\0D\0L\0\0l\0L\0\0z\0L\0\0�\0�\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0
\0\0\0\0\0\0\0\0\0\0%\0\0\02\0\0P \0\0\0\0��\0\0\0X \0\0\0\0�\0�\0\0\0\0\0\0?\0 \0S\0\0 \0Y\0 \0 \0c\0\0\0s\0\0\0�\0\0!\0�\0\0.\03\0)\0$\0�\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0�\0\0\0\0\0\0\0\0\0\0\0\0\0\0H\0�\0\0\0\0\0\0\0\0\0MainClass\0userAge\0userName\0userBirthday\0userPassword\0args\0Console\0System\0Clear\0WriteLine\0ReadLine\0String\0Concat\0Object\0.ctor\0Main\0main\0RuntimeCompatibilityAttribute\0System.Runtime.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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 found it in a file

Profile icon
Ascendancy

I would suggest use Repl.it DB though I don't know about it's compatibility with C# (its a very clean system). If you want to store files permanently, you have to connect externally. Creating a database in C++/C# is somewhat of a daunting task for a novice programmer. I recommend you do your own research on C++ database programming or look at other languages like Python, Go, and Node that make the whole process extremely easy and doable with only a Repl.it.