Now my team is working on a project involving a Windows application (C#).
The application has a option for saving the username and password in the client machine for the current logged in user. The user can start the application without entering username and password. Please check the snapshot of my requirement.
Please suggest a good example or reference.
Alt text http://www.freeimagehosting.net/uploads/0ff58473e0.jpg
Chrome: Click on the Menu button and then select Settings. Under Settings select Passwords. Under Passwords, select the toggle to turn on Save Passwords.
GetCurrent(). Name; Returns: NetworkName\Username. Gets the user's Windows logon name.
To persist user credentials easily and in a secure way you can write them to the application configuration file using the ConfigurationManager class, secure the password using the SecureString class and then encrypt it using tools in the Cryptography namespace.
Edit: This might help: Encrypting Passwords in a .NET app.config File
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With