Quantcast
Channel: Gemalto Sentinel Customer Discussions
Viewing all articles
Browse latest Browse all 1619

Envelope obfuscation problem (.NET)

$
0
0
Hello,
I am using Sentinel HASP for years to protect my applications. It's an excellent solution, but I came across a problem with an obfuscation.

I use attributes in my C# code to specify the protection settings:

EnvelopeMethodProtectionAttributes(CodeObfuscation = false, SymbolObfuscation = EnvelopeSymbolObfuscation.ObfuscateSkip)]
[Serializable]
public class MyClass
{
private string myPrivateVariable;
}

Symbol obfuscation is turned off but the Envelope utility obfuscates private member variables in classes anyway. I have terrible problems with the serializable classes!

If I don't specify EnvelopeMethodProtectionAttributes in the code and select methods to protect manually in the envelope utility, the obfuscation is done correctly. (Not obfuscated if not checked.)
Selecting methods manually is a really bad way for a large project.

I can't tell you exactly in which Sentinel SDK version this behavior changed but I remember that 1-2 years ago there wasn't such a problem.

Could you help me? How can I prevent the obfuscation when using attributes in C#?

Viewing all articles
Browse latest Browse all 1619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>