Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.net - What is the best practice for securing WPF application configuration settings?

I am aware that this is a more subjective question than is preferred, but I couldn't think of a better place or way to ask it.

I am developing a WPF application, and I have configuration settings in an App.config file. Some of these settings are sensitive information, and it would be best if the users of the machine could not directly access them (the settings would be set during install or administrator configuration).

What is the best way to protect application configuration settings for a WPF desktop application?

Thanks for any help.

like image 367
Sako73 Avatar asked Nov 05 '22 21:11

Sako73


1 Answers

This question has nothing to do with WPF per se.

.Net offers a wide load of encryption methods.

For passwords, you should really look into one way hash like BCrypt. Then when you authenticate you just hash (make sure you use a salt as well) what the user entered and see if it hashes to the same thing.

For URLs etc I would suggest you check out this question.

You might also find this question similar to yours

like image 92
Oskar Kjellin Avatar answered Nov 14 '22 23:11

Oskar Kjellin