Reputation: 4196
I'm currently developing a WPF project, the project is divided into layers. And one of the layers (class library) is called Security, that contains defined constants that I use as some key encryptions that use.
My question is, how can I protect these strings to any developer make reverse engineer?
Is there a secure way?
Thanks!
Upvotes: 1
Views: 239
Reputation: 1756
You can develop secure applications in .NET :) Obfuscation should not be confused with security - it is by far most basic form of it, but not the only form. For example, you could code up your Security library to be initialized by a encryption key string that stored in Isolated Storage that belongs to a user and is created there when your application first runs. In turn, you can generate keys for each user by using something like this: Is a GUID a good key for (temporary) encryption?
Upvotes: 2