Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javascript and silverlight obfuscation!

i am having few issues with obfuscation for last few days .

firstly i would like to obfuscate my javascript code such that variables and function names get obfuscated .any free or cheap recommended software.

secondly , for my silverlight app i would like following

  1. i would like my library project (silverlight library) to get obfuscated . because if i dont , things get very clear and easy to decompile.if i obfuscate public members , the resultant xap is not runnable ( tested using both .net reactor and crypto obfuscator)

  2. on my wcf service end, for datacontracts(table name and column name) and service operations i would like their names to get obfuscated . and if i dont , the whole datamodel gets revealed.i am using linqtosql on the service and by setting the serialisation mode to unidirectional , datamember attributes are automatically annotation .

please suggest optimal solutions.

like image 806
Muhammad Jamal Shaikh Avatar asked Mar 19 '26 20:03

Muhammad Jamal Shaikh


2 Answers

What you are hoping to do is inherently impossible. You will not achieve any kind of security that way. Whatever you do anyone with some free time and a little help from the JavaScript Beautifier will be able to understand what your script is doing. Search Stack Overflow for javascript obfuscation to read more about it.

like image 141
Zed Avatar answered Mar 22 '26 09:03

Zed


JavaScript obfuscation (as a side effect of optimization): Google's Closure Compiler

like image 32
Albireo Avatar answered Mar 22 '26 09:03

Albireo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!