Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best approach to store login credentials for website

I have created a site in ASP.NET 3.5 & I have only 2 or 3 user login IDs who can login to the website.

What would be the best way to save these login details? Which of these approaches, or others, would be most suitable?

  1. Using Forms Authentication, and saving credentials (username and password) in web.config
  2. to create a text file in directory and modify it

Which approach is best from a security and maintenance perspective? What other approaches are suitable for a login system for ASP.NET?

like image 953
Zerotoinfinity Avatar asked Dec 28 '22 15:12

Zerotoinfinity


1 Answers

Use the default ASP.NET Sql Membership Provider. The link will show you how to used it and get it configured.

like image 116
Esteban Araya Avatar answered Dec 31 '22 05:12

Esteban Araya