Best way to store encryption keys in .NET C#

后端 未结 6 740
粉色の甜心
粉色の甜心 2020-11-29 20:06

In our application we have a lot of sensitive configuration settings, which we are storing in a xml file which is again encrypted.

This secure file has to be decrypt

6条回答
  •  独厮守ぢ
    2020-11-29 20:50

    If you can't read them in reflector, how do you expect the program to read them? You could obfuscate them by breaking them up and storing the parts all over the place, but (AFAIK) once you require your program to be able to read them, then anyone with access to your code can read them too.

    Don't forget values in memory can be accessed as well (cough SecureString).

提交回复
热议问题