Click here to Skip to main content
Click here to Skip to main content

Tagged as

(untagged)
Go to top

Obfuscating Silverlight

, 16 Sep 2010
Rate this:
Please Sign up or sign in to vote.
“Obfuscation is the concealment of intended meaning in communication, making communication confusing, intentionally ambiguous, and more difficult to interpret.”Obfuscation has been used in programming for ages helping protect intellectual property! WPF and Silverlight is a li

“Obfuscation is the concealment of intended meaning in communication, making communication confusing, intentionally ambiguous, and more difficult to interpret.”

Obfuscation has been used in programming for ages helping protect intellectual property! WPF and Silverlight is a little more tricky to obfuscate because of the way XAML work! While searching for a solution I found that Dotfuscator does support Silverlight XAML & WPF BAML obfuscation

“With XAML Obfuscation, developers can protect Intellectual Property and prevent tampering by renaming XAML resources, trim and compress Silverlight assemblies to optimize load time and performance, and automatically re-sign assemblies. Developers can fully obfuscate and instrument Silverlight XAP files resulting in a streamlined automated build process.”

 

WARNING: Dotfuscator is NOT a FREE tool

 

Lets try it out! What I have done is created a extremely simple Silverlight application. Next I opened Dotfuscator and added my XAP to the project and obfuscated it (I left all the settings on their defaults) and compared the 2 XAPs

The original XAP is 3,730 bytes and the obfuscated XAP is 4,134 bytes… Lets open it with reflector and compare:

Here is the MainPage un-obfuscated

And here is the same page obfuscated

Here is the un-obfuscated XAML

And here is the same XAML obfuscated

Dotfuscator has hundreds of settings to control the way it obfuscate code… so play with the settings and let me know what you think!

PS. Dotfuscator is not the only tool that has some XAML support… If you found any other that you like, please let me know!!!

 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

rudigrobler

South Africa South Africa
No Biography provided

Comments and Discussions

 
GeneralMy vote of 5 PinmemberMember 160649019-Dec-12 0:44 
GeneralMy vote of 1 Pinmemberredcheek23-Sep-10 16:24 
GeneralMy vote of 1 PinmemberS.H.Bouwhuis20-Sep-10 22:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 16 Sep 2010
Article Copyright 2010 by rudigrobler
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid