I am making a C#.NET application wherein I have designed an Administrator account. Now to Login in that account the Administrator has to enter the password.
My Question is : How do I save that password?
Possible options :
-
Global variable (Obviously incorrect because it will be reset to its default value everytime I run the application)
-
Database Relation (Feasible but it serves to be a scalar relation only….)
I don’t want to store it in a scalar relation because I think it is stupid to use a relation for only one entry and one column!
Is there any other optimum way to store the password?
You can store it salted and hashed in a user settings file.
You can access the default settings file using something like: