DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Need help to save password

By: rekha singh | 08 Apr 2010 1:27 pm

Hi,
 
I'm programming a simple application for a small business using C#, I need to know how to save passwords and usernames locally without using any databases or servers, maybe the registry is good so how can I store these information in the registry and check them every time the application runs?
 
thakns in advance

Comments

 You can save it in the web.config. Check authentication and authorization on asp.net.

By: rekha singh | 08 Apr 2010
my application is not a web application, it's a dektop application so asp doen't do the job need other solutions please .
By: rekha singh | 08 Apr 2010
you can save your password in  application settings.
 
 right click solution explorer then click MyProject (Project settings)
 
In that select settings
 
in that settings you can see four options 1.name 2.type 3.scope 4.value
 
you can use this to save ur application variables globally
 
To access this variable
 
My.Settings. name_o_fthe_ variable_ you_set
 
ex My.Settings. password
 
 

 

By: rekha singh | 08 Apr 2010

 this will be a great solution if I want to include the password into my code, so it can't be changed ..... I want to allow the user to enter it and then save it, I think I'll save it as a value into the windows registry, what do you think ?

By: rekha singh | 08 Apr 2010

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move