Answer the question
In order to leave comments, you need to log in
Application.Settings .NET - is it safe to store the password there?
Settings.Default.Settings.password stores the password of the last logged in user. Where is this data stored? And how is remembering passwords implemented in other programs?
Answer the question
In order to leave comments, you need to log in
Never do that. There are special classes for storing user account data. For example, msdn.microsoft.com/library/windows/apps/windows.se...
On the "seven" this data is stored in C:\Users\$(username)\AppData\Local in the user.config file, the format is exactly the same as in app.config/web.config
+ to @Vyacheslav Zolotov, although his solution won't work on Windows 7 and older. It is insecure to store a password in a .net application in any form, so the only more or less feasible solution is encryption. Or the password itself is not needed as such, you can store its hash.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question