c# - How to store login info of a WPF application -


i have application developed in wpf. add login page system specific. multiple user can registered in machine application. know best approach , local db store credentials or service validate credentials. if local db please suggest appropriate 1 tiny, secured , compatible .net application.

it depend on how want set or achieve it.

i use microsoft sql server management db achieve this. can use system.data.sqlclient class in wpf application store , retrieve user login information db. in following steps:

  • step 1: make db in microsoft sql server management
  • step 2: create table store user login credential different data fields along data types, vary based on credentials want user verified.
  • step 3: create login page per requirement
  • step 4: use system.data.sqlclient class options in login page able connect, retrieve or save data of user login
    credentials in db.
  • step 5: while saving user credentials in db use microsoft's own hash secure class or encryption class save data in db (without saving password raw in db table).
  • step 6: use same encryption class verify credentials after retrieving hashed/encrypted credential db using sqlclient.

this general walk through or logic of building user login credential page in wpf application may vary based on software requirement or how want achieve it.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -