F
F
Flumaster2014-11-01 14:35:07
.NET
Flumaster, 2014-11-01 14:35:07

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

3 answer(s)
V
Vyacheslav Zolotov, 2014-11-01
@SZolotov

Never do that. There are special classes for storing user account data. For example, msdn.microsoft.com/library/windows/apps/windows.se...

M
mayorovp, 2014-11-01
@mayorovp

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

V
Vitaly, 2014-11-05
@vipuhoff

+ 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 question

Ask a Question

731 491 924 answers to any question